拉取docker镜像失败
error pulling image configuration: download failed after attempts=6: dial tcp 31.13.64.7:443: i/o timeout
具体bug如下:
[root@hadoop102 software]# docker pull apache/incubator-doris:build-env-for-0.15.0
build-env-for-0.15.0: Pulling from apache/incubator-doris
61ccbfd87592: Retrying in 1 second
error pulling image configuration: download failed after attempts=6: dial tcp 31.13.64.7:443: i/o timeout
[root@hadoop102 software]# docker pull apache/incubator-doris:build-env-for-0.15.0
build-env-for-0.15.0: Pulling from apache/incubator-doris
61ccbfd87592: Retrying in 1 second
error pulling image configuration: download failed after attempts=6: dial tcp 108.160.165.147:443: i/o timeout
[root@hadoop102 software]# docker pull apache/incubator-doris:build-env-for-0.15.0
build-env-for-0.15.0: Pulling from apache/incubator-doris
61ccbfd87592: Retrying in 8 seconds
error pulling image configuration: download failed after attempts=6: dial tcp 199.96.58.15:443: i/o timeout
[root@hadoop102 software]# docker pull apache/incubator-doris:build-env-for-0.15.0
build-env-for-0.15.0: Pulling from apache/incubator-doris
61ccbfd87592: Retrying in 1 second
解决方案:
sudo vim /etc/docker/daemon.json
加入内容
{
"registry-mirrors": [
"https://ustc-edu-cn.mirror.aliyuncs.com/",
"https://ccr.ccs.tencentyun.com/",
"https://docker.m.daocloud.io/"
]
}
重启 docker
sudo systemctl daemon-reload
sudo systemctl restart docker
参考:https://gitee.com/xxxgod/Java-DevSpace/tree/master/doc