Skip to content

Instantly share code, notes, and snippets.

@jmoberly
Created March 15, 2016 13:21
Show Gist options
  • Save jmoberly/ad154eb63c0e75ddcef1 to your computer and use it in GitHub Desktop.
Save jmoberly/ad154eb63c0e75ddcef1 to your computer and use it in GitHub Desktop.
Clean up all the exited docker containers.
sudo docker ps -a | grep 'Exited (' | awk '{print $1}' | xargs --no-run-if-empty sudo docker rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment