Skip to content

Instantly share code, notes, and snippets.

@ph4r5h4d
Created June 24, 2019 08:22
Show Gist options
  • Save ph4r5h4d/d4e9a0e611b4d06e3ae879de6b8d2fd2 to your computer and use it in GitHub Desktop.
Save ph4r5h4d/d4e9a0e611b4d06e3ae879de6b8d2fd2 to your computer and use it in GitHub Desktop.
docker remove images
remove dangling images `docker images -f "dangling=true" -q`
clean image repository `docker image prune`
remove <none> images `docker rmi --force $(docker images | grep "^<none" | awk '{print $3}')`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment