Skip to content

Instantly share code, notes, and snippets.

@warmwaffles
Last active October 7, 2016 17: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 warmwaffles/4e492b0ea97bace8b374fc2a4d23e604 to your computer and use it in GitHub Desktop.
Save warmwaffles/4e492b0ea97bace8b374fc2a4d23e604 to your computer and use it in GitHub Desktop.
# Remove exited docker containers
docker rm $(docker ps -q -f 'status=exited')
# Remove dangling containers
docker rmi $(docker images -q -f "dangling=true")
# remove dangling volumes
# http://stackoverflow.com/questions/30604846/docker-error-no-space-left-on-device
docker volume rm $(docker volume ls -qf dangling=true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment