Skip to content

Instantly share code, notes, and snippets.

@noppelmax
Created January 22, 2016 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noppelmax/312c505afb5a2138d5cb to your computer and use it in GitHub Desktop.
Save noppelmax/312c505afb5a2138d5cb to your computer and use it in GitHub Desktop.
Removes all not currently running docker containers
docker rm $(docker ps -a | awk '(!(/Up/) && !(/NAMES/)) {print $NF}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment