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