Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove untagged images #633

Open
skoch123 opened this issue Feb 14, 2017 · 4 comments
Open

Remove untagged images #633

skoch123 opened this issue Feb 14, 2017 · 4 comments

Comments

@skoch123
Copy link

Hello!
How to remove untagged images from docker?

@scotty-c
Copy link
Contributor

I don't believe the module supports removing untagged images, but you can run the following docker rmi $(docker images | grep "^<none>" | awk "{print $3}")

@dbason
Copy link

dbason commented May 2, 2017

If you're using the latest version of docker you can just do:

docker image prune

@jcrsilva
Copy link

You can set this to run on a cron: https://github.com/spotify/docker-gc

Not exactly the same but gets the job done

@gdubicki
Copy link

This PR will help to keep only a single tag of a given image: #696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants