Start Docker-- basic commands of \ stop \ delete \ restart

xxx Description: Container ID is

  • Start has been stopped containers xxx

docker start xxx

  • Stop running container xxx

docker stop xxx

  • Restart container

docker restart xxx

  • Delete container

docker rm xxx

Batch operations

  • Start all stopped container

docker start $(docker ps -a -q)

  • Stop all containers

docker stop $(docker ps -a -q)

  • Delete all containers

docker rm $(docker ps -a -q)

Published 42 original articles · won praise 19 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_37828719/article/details/104414414