国外镜像经常卡
docker: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/12/12d0d03473def9333e13e5f405cce2b1fa163cb9721255267e0cbe04a7a464eb/data?verify=1587049839-8XH2acmtoeht3%2BZf%2Fv%2FrCcihckE%3D: net/http: TLS handshake timeout.
touch /etc/docker/daemon.json
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://tnxkcso1.mirror.aliyuncs.com"]
}
service docker restart
ok
OR
修改daemon配置文件/etc/docker/daemon.json来使用加速器
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://f1z25q5p.mirror.aliyuncs.com"]
}
保存,运行下面命令,重启docker服务
sudo systemctl daemon-reload
sudo systemctl restart docker
网友评论