Domestic sometimes have difficulty pulling from Docker Hub mirror, you can configure mirroring accelerator. Docker official and domestic many cloud service providers offer domestic accelerator service.
1, the acceleration Address Configuration
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://r3u6ty4i.mirror.aliyuncs.com","https://mirror.baidubce.com"],
"log-driver":"json-file",
"log-opts": {"max-size":"500m", "max-file":"3"}
}
2、启动docker
sudo service docker reload
sudo service docker start
3, check whether the entry into force of the accelerator
command line docker info, if seen from the following results, the configuration was successful.
Registry Mirrors:
https://mirror.baidubce.com