Skip to content

Instantly share code, notes, and snippets.

@andrewserong
Last active March 23, 2018 04:58
Show Gist options
  • Save andrewserong/235c22b9bdd7728d3ff2cc59fdf5eb74 to your computer and use it in GitHub Desktop.
Save andrewserong/235c22b9bdd7728d3ff2cc59fdf5eb74 to your computer and use it in GitHub Desktop.
Remove dangling Docker images
# via docker rmi
docker rmi $(docker images -f “dangling=true” -q)
# or more elegantly
docker system prune
# remove all unused images, not just dangling ones
docker system prune -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment