In this blog post, I will show you a one liner command to delete all the Docker containers on your host.
Containers
The command below, will delete all the containers on your Docker host.
docker container rm -f $(docker container ls -aq)
The command is very useful and in the post I will show you to save as a Shell script.
Processing…
Success! You're on the list.
Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.