Your location home page linux

How to generate, package, download and run docker images on specified ports

Since we have been doing JD Cloud check-in recently, we use docker. Here are all the commands we use

 Docker ps View the running container

images:

 Docker images or docker images to view all images

 19da2cf3b29629b8c83f9b14a9ae6b3a

commit:

 Docker commit - a='saobing '- m='jdmianban' ffb1d2d3b3ce saobingpro: 1.3 Generate image Parse the command The command is commit -A Author -M Description information Ffb1d2d3b3ce ID of the container in operation Saobingpro: 1.3 Image name: version number

A series of codes will be issued after success

 cdd72d4f8e1f4e6fd2ae4a5e79458315

Save:

 Docker export image docker save [options] images [images...] docker save -o saobingpro.tar saobingpro:1.3 or docker save > saobingpro.tar saobingpro:1.3 Where - o and>indicate output to file, saobingpro .tar Is the target file, saobingpro: 1.3 is the name of the source image (name: tag)

 b8ced0a585ca6803dd3569936aa6dcae

 

  You spent a total of:

About the author: Big Cousin YJ

Popular articles

Post reply

Your email address will not be disclosed. Required items have been used * tagging