Skip to content

Instantly share code, notes, and snippets.

@bndabbs
Created May 20, 2016 14:50
Show Gist options
  • Save bndabbs/79980466bf233f211a6af28c0a4ca1be to your computer and use it in GitHub Desktop.
Save bndabbs/79980466bf233f211a6af28c0a4ca1be to your computer and use it in GitHub Desktop.
Delete all docker images. Add sudo if you aren't a member of the docker group
#!/bin/bash
images=`docker images | awk '{print $3}' |grep -v IMAGE`
for i in $images; do docker rmi $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment