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"
  ]
  1. 重启docker
    systemctl restart docker
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐