error pulling image configuration: download failed after attempts=6: dial tcp 104.18.125.25:443: i/o

问题点:使用docker拉取服务时出现失败的情况

 error pulling image configuration: download failed after attempts=6: dial tcp 104.18.125.25:443: i/o timeout

如何解决:

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://yxzrazem.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

解决结果:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_44484541/article/details/131303311