Skip to content

Instantly share code, notes, and snippets.

@kevgathuku
Created February 17, 2015 22:16
Show Gist options
  • Select an option

  • Save kevgathuku/a13096b7288d04180d4e to your computer and use it in GitHub Desktop.

Select an option

Save kevgathuku/a13096b7288d04180d4e to your computer and use it in GitHub Desktop.
Remove docker temporary built images
#!/bin/bash
# Source: http://blog.stefanxo.com/2014/02/clean-up-after-docker/
docker images -f dangling=true -q | xargs -r docker rmi -f #Adding -f forces removal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment