Adam K Dean
Posted on May 27, 2015
This removes all exited containers.
docker ps -a | grep 'Exited' | awk '{print $1}' | xargs --no-run-if-empty docker rm
Use with care as it will also removed Data Volume Containers.
💖 💪 🙅 🚩
Adam K Dean
Posted on May 27, 2015
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
dotnet Building a Linux Based Minimal and Efficient .NET 8 Application Docker Image
November 24, 2024