Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Removing containers from docker  (Read 3880 times)

0 Members and 1 Guest are viewing this topic.

aravindm

  • Guest
Removing containers from docker
« 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)
 ;)