Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: net/http: TLS handshake timeout

Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: net/http: TLS handshake timeout

Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

 

解决办法

  在 vim /etc/docker/daemon.json 添加镜像

  {"registry-mirrors":["https://registry.docker-cn.com","https://pee6w651.mirror.aliyuncs.com"]}

  https://registry.docker-cn.com --------> 国内docker官方中国区

  https://pee6w651.mirror.aliyuncs.com ---------> 阿里云镜像

posted @ 2019-12-07 22:00  文所未闻  阅读(1604)  评论(0编辑  收藏  举报