如果docker pull镜像出现:

error pulling image configuration: download failed after attempts=6: dial tcp 173.236.182.137:443: i/o timeout
如果是阿里云,我们进入阿里云官网:
然后点击产品,在下面的搜索框搜索容器镜像服务:

进来之后点击控制台:
然后选择镜像工具里面的镜像加速器:

回到linux中,输入:
vim /etc/docker/daemon.json
然后把以下输入去,如果有则替换,没有就输入
{
"registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
}
记得把里面的网址换成你刚刚在阿里云中复制的。
然后保存退出(按下esc,输入:wq(包含冒号),回车)即可。
然后重启docker
systemctl restart docker
输入:
docker info
查看执行情况:

可以看到已经执行。
如果不是阿里云用户,则用中国官方docker的镜像源:
或者网易: