Docker operation command - to view, stop, delete container

List all container ID

docker ps -aq

Stop all containers

docker stop $(docker ps -aq)

Stop a single container

docker stop to stop the vessel name

Delete all containers

docker rm $(docker ps -aq)

To delete a single container

docker rm to delete the name of the vessel

Remove all mirrors

docker rmi $(docker images -q)

  

Guess you like

Origin www.cnblogs.com/niuzilong/p/11416100.html