Docker offline installation, and introduced into the mirror docker

  The installation package docker offline into the system, into the folder and decompression, installation using the following command:

rpm -ivh *.rpm --nodeps --force 

  After installing the successful use, docker info View docker version information. It can be networked on a single machine, the image file you want to pull down, use docker packaged, packaged into a tar file.

docker save -o filename .tar image name

  The packaged tar files are copied to the offline local area network system, a command to load said:

docker load <filename .tar

  It has been loaded successfully, docker run start.

  About docker run parameters:

RUN --name mynginx Docker - D Nginx: Latest 
 - name command name vessel 
 - D backgrounding 
 - P port mapping 
Docker RUN -p 80:80 -v / data: / data - D Nginx: Latest 
host data is mapped to the directory data container

 

Guess you like

Origin www.cnblogs.com/justlove/p/11366059.html