Docker remov all running containers

In this article let’s discuss about Docker remov all running containers. Let’s go through the following methods without any delay.

Method 1:

$ docker rm $(docker ps -a -q)

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar by have a try!

Method 2 :

docker rm $(docker ps -aq)

Hope the above solution works.

Realted Posts : Migrate fresh