docker 拉取镜像超时:error pulling image configuration: download failed after attempts=6: dial tcp 168.143.171.189:443: i/o timeout
之前是正常的,今天就罢工了,可能原因是国外镜像不稳定,被针对了吧。
error pulling image configuration: download failed after attempts=6: dial tcp 168.143.171.189:443: i/o timeout
那就改为国内镜像:
1.创建/etc/docker目录(已有的跳过)
sudo mkdir -p /etc/docker
2.修改镜像配置文件,改为国内镜像。
sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": [ "https://ox288s4f.mirror.aliyuncs.com", "https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "https://mirror.ccs.tencentyun.com" ] } EOF
3.重启
sudo systemctl daemon-reload
sudo systemctl restart docker
或者
sudo service docker restart
参考:https://blog.csdn.net/mjh1667002013/article/details/140001206