Docker default mirror tensile addresses are slower than foreign warehouse downloads, and the "Net / Http: TLS Handshake Timeout" will be reported.
At this point, you only need to change the pick-up address to the domestic mirror warehouse.
The standard format is:
docker pull registry.docker-cn.com/myname/myrepo:mytag
example:
docker pull registry.docker-cn.com/library/ubuntu:16.04
Change to Ali Cloud Mirror
To permanently reserve changes, you can modify the /etc/docker/daemon.json file and add the registry-mirrors key value.
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
Restart the Docker after modifying the save to make the configuration take effect
Start Docker
#Guarding process restart:
$ sudo systemctl daemon-reload
# Restart the Docker service
$ sudo systemctl restart docker
# Close Docker
$ sudo systemctl stop docker
方法2:
更改local dns setting /etc/resolv.conf:
using Google's DNS server 8.8.8.8
.