docker build 报错: dial tcp xxxxxxxx:443: i/o timeout 切换镜像源
1. docker build 报错:error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/13/13efce2de9076d5e1f80373bd5ffa86743c91d74451a68cb63f9df
·
1. docker build 报错:
error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/13/13efce2de9076d5e1f80373bd5ffa86743c91d74451a68cb63f9df9c08b0c054/data?verify=1592982438-zaYzzEYNl5or1tUf06eawIWZFQM%3D: dial tcp xxxxxx: i/o timeout
2. 切换镜像源
1. 打开 vim /etc/docker/daemon.json
2. 添加
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://registry.aliyuncs.com",
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn"
]
- 重启docker
systemctl restart docker
更多推荐
已为社区贡献1条内容
所有评论(0)