Skip to content

Instantly share code, notes, and snippets.

@technicool
Created August 17, 2014 19:30
Show Gist options
  • Save technicool/f5bf2f51163949c46b72 to your computer and use it in GitHub Desktop.
Save technicool/f5bf2f51163949c46b72 to your computer and use it in GitHub Desktop.
Clean up all non-running docker images
#!/bin/bash
#
# Note: This will cause you to have to redownload lots of stuff, use with care!
sudo docker.io images | awk '{print "sudo docker.io rmi " $3}' | /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment