Linux > Virtualization
Removing containers from docker
(1/1)
aravindm:
Steps to remove all Stopped containers
If you want to remove the unused containers please follow this steps.
1. Listing all containers
--- Code: ---#docker ps -a -q
--- End code ---
2. Command to remove all containers which are not running
--- Code: ---#docker rm $(docker ps -q -f status=exited)
--- End code ---
To wipe all the docker containers use
--- Code: ---docker rm $(docker ps -a -q)
--- End code ---
;)
Navigation
[0] Message Index
Go to full version