我设置了 /etc/docker/daemon.json:
[ol]{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.nju.edu.cn",
"https://docker.mirrors.ustc.edu.cn"
]
}[/ol]复制代码
重启docker:
[ol]systemctl daemon-reload && systemctl restart docker[/ol]复制代码
启动docker:
[ol]root@test1:/data/docker-test# docker-compose up
Pulling db (mysql:5.6.51)...
ERROR: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)[/ol]复制代码
好像没有调用国内的镜像?