docker knowledge summary

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 pullcommand mirrors pulled in the local warehouse

docker search tutorial
docker pull tutorial

 2. Mirror operation:

    By docker imagescan 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

Guess you like

Origin www.cnblogs.com/i-shu/p/11318870.html