Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@gtalarico
Created April 5, 2019 18:44
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 gtalarico/96ad8f6dd91bd9f8cc4b41a2f83317f6 to your computer and use it in GitHub Desktop.
Save gtalarico/96ad8f6dd91bd9f8cc4b41a2f83317f6 to your computer and use it in GitHub Desktop.
For when you docker is misbehaving
#!/bin/bash
# By Andrew Salveson
docker rm -v $(docker ps -a -q -f status=exited)
docker rmi $(docker images -f "dangling=true" -q)
docker volume rm $(docker volume ls -qf dangling=true)
cat <<EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment