Usage of Docker Mirror Accelerator
It is sometimes difficult to pull an image from DockerHub in China, so you can configure the image accelerator. Docker officials and many domestic cloud service providers provide domestic accelerator services, such as:
China Image Repository officially provided by Docker: https://registry.docker-cn.com
1. Add an accelerator
[root@localhost ~] # echo'{"registry-mirrors": ["https://registry.docker-cn.com"]}' > > / etc/docker/daemon.json"
2. Restart the service
[root@localhost ~] # systemctl daemon-reload
[root@localhost ~] # systemctl restart docker.service
3. Check whether the accelerator is in effect
[root@localhost ~] # docker info