docker 拉取镜像错误 Error response from daemon: Get https://registry-1.docker.io/v2/:

问题:[root@localhost ~]# docker pull mysql:5.5

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

在这里插入图片描述

[root@localhost ~]# docker pull mysql:5.5
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

解决方法:

1 :dig @114.114.114.114 registry-1.docker.io

dig @114.114.114.114 registry-1.docker.io

查看

docker 拉取镜像错误 Error response from daemon: Get https://registry-1.docker.io/v2/:_第1张图片

2安装vim,如果有则跳过

yum install vim

3修改hosts

  1. 打开hosts: vim /etc/hosts
  2. 添加ip:34.199.77.19 registry-1.docker.io`

你可能感兴趣的:(docker 拉取镜像错误 Error response from daemon: Get https://registry-1.docker.io/v2/:)