One Liner Command to Delete All Docker Containers

In this blog post, we will learn how to use a one-liner command to delete all the Docker containers on your host.


The command below, will delete all the containers on your Docker host.

docker container rm -f $(docker container ls -aq)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.