docker basic image is saved as a local file command

See what the mirror

docker images

 

Save image as a local file, you can use the Docker save command

docker save -o want to save the file name you want to save the image

 

docker common commands

docker ps: View all vessels operating

docker ps -a: View all containers including dead

docker logs [container id]: view the reason for the failure to start

docker images: See all mirrors

docker rm [vessel name]: Remove container

docker rmi [Mirror id]: Remove Mirror

docker start [vessel name]: Start container

docker stop [vessel Name]: stop specified container

docker run - d --name "[Container Name]" -p [host port exposed]: [port exposed internal procedures] [Mirror id]

docker inspect containers Name: Check container interior where

Guess you like

Origin www.cnblogs.com/kkvt/p/12381288.html