阿里云大陆Linux服务器docker网络故障

错误

root@iZf8z06vyziuy1khok8ku9Z:/workspace/ComposePrintingSystem# docker-compose up -d WARN[0000] The "APPDATA" 
variable is not set. Defaulting to a blank string. WARN[0000] The "APPDATA" variable is not set. Defaulting to a blank string. 
WARN[0000] The "APPDATA" variable is not set. Defaulting to a blank string. [+] Running 5/5 ✘ postgres Error 15.5s ✘ redis 
Error 15.5s ! xuanhehttpapihost Warning 15.5s ✘ minio Error 15.5s ! xuanhegateway Warning 15.5s Error response from 
daemon: Get "[https://registry-1.docker.io/v2/](https://registry-1.docker.io/v2/)": context deadline exceeded

解决方式

编辑配置文件

nano /etc/docker/daemon.json

添加下面几个代理服务器

"registry-mirrors": [
    "https://docker.m.daocloud.io",
    "https://dockerproxy.com",
    "https://registry.docker-cn.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://hub-mirror.c.163.com",
    "https://hub.uuuadc.top",
    "https://docker.anyhub.us.kg",
    "https://dockerhub.jobcher.com",
    "https://dockerhub.icu",
    "https://docker.ckyl.me",
    "https://docker.awsl9527.cn",
    "https://mirror.baidubce.com"
  ]
}

重启Docker服务

systemctl daemon-reload
systemctl restart docker
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容