错误
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