1. Add accelerated domestic source
Is: modify /etc/docker/daemon.json
, add the following keys:
{ "registry-mirrors": ["https://registry.docker-cn.com"] }
After the restart to take effect docker service.
It can be used directly after docker pull
command mirrors pulled in the local warehouse
docker search tutorial
docker pull tutorial
2. Mirror operation:
By docker images
can see a mirror image of the existing local command:
docker images # view mirror docker exec -it mirror / bin / bash # into the mirror bash dcker rmi remove a mirror image id #
Reference link: https: //blog.csdn.net/qq_33256688/article/details/80319673