Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled 报错

问题描述

在 Centos7 系统下 docker 镜像拉取失败、报错

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled 报错

解决方案

vim 打开 /etc/resolv.conf

sudo vi /etc/resolv.conf

将 nameserver 改为 8.8.8.8

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled 报错

重启 docker

sudo systemctl restart docker

再重新运行 docker 拉取镜像命令

sudo docker pull mysql:5.7

参考链接

https://*.com/questions/60766682/docker-error-response-from-daemon-get-https-registry-1-docker-io-v2-net-ht

上一篇:hadoop三种启动方式


下一篇:Cilium路由模式(一)