Admin-Ahead Community

Linux => Virtualization => Topic started by: aravindm on May 19, 2018, 05:06:14 pm

Title: Removing containers from docker
Post by: aravindm on May 19, 2018, 05:06:14 pm
Steps to remove all Stopped containers

If you want to remove the unused containers  please follow this steps.

1. Listing all containers
Code: [Select]
#docker ps -a -q
2. Command to remove all containers which are not running
Code: [Select]
#docker rm $(docker ps -q -f status=exited)
To wipe all the docker containers use
Code: [Select]
docker rm $(docker ps -a -q)
 ;)