当前位置:   article > 正文

docker compose 报超时error pulling image configuration: tcp 104.18.123.25:443: i/o timeout_error pulling image configuration: download failed

error pulling image configuration: download failed after attempts=6: dial tc

docker compose下载 速度太慢导致超时
error pulling image configuration: download failed after attempts=6: dial tcp 104.18.121.25:443: i/o timeout
使用的是github的源基本都是超时

配置阿里云镜像加速器

阿里云镜像加速器
1 创建文件夹

sudo mkdir -p /etc/docker
  • 1

2 将JSON串写入到daemon.json

sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://i1el1i0w.mirror.aliyuncs.com"]
}
EOF
  • 1
  • 2
  • 3
  • 4
  • 5

重启docker

sudo systemctl daemon-reload
  • 1
sudo systemctl restart docker
  • 1

查看docker镜像

cat /etc/docker/daemon.json
  • 1

重新执行docker compose命令下载软件

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/553375
推荐阅读
相关标签
  

闽ICP备14008679号