Skip to content

Instantly share code, notes, and snippets.

@jbfink
Created April 14, 2016 18:33
Show Gist options
  • Save jbfink/9c1f691f609c1929c0d2fe11e35a6a2f to your computer and use it in GitHub Desktop.
Save jbfink/9c1f691f609c1929c0d2fe11e35a6a2f to your computer and use it in GitHub Desktop.
#!/bin/bash
docker ps -a | grep 'Exit' | awk '{print $1}' | xargs docker rm
docker images | grep '<none>' | awk '{print $3}' | xargs docker rmi
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