Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save m-wendler/9220ebd0a21db6794e26 to your computer and use it in GitHub Desktop.
Save m-wendler/9220ebd0a21db6794e26 to your computer and use it in GitHub Desktop.
remove all exited docker containers in one go
# the '-q' option returns just the container IDs
docker rm $(docker ps -a -q -f status=exited)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment