zl程序教程

您现在的位置是:首页 >  工具

当前栏目

[Docker] Remove all containers and images

Docker and all remove Images Containers
2023-09-14 09:00:42 时间

To clean up Docker images and containers, you can use the following commands in the terminal:

  1. Remove all containers:

docker rm $(docker ps -a -q)

  1. Remove all images:

docker rmi $(docker images -q)

 

Please note that the above commands will remove all containers and images, including those that are still in use. If you want to keep certain containers or images, you will need to modify the command or remove them manually.