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

Convenience script to remove untagged images #11

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mcastellin
Copy link

Adding convenience script that removes untagged images from the local registry. I find myself with a lot of unused and untagged images when I develop new Dockerfiles and I need a fast way to remove old images that are generated during development and left eating up disk space.

When using docker all the time to develop new images it is common to
leave a lot of untagged images behind. The
`docker_remove_untagged_img.sh` removes all docker images from local
storage that are not currently assigned to any tag
Documenting what the `docker_remove_untagged_img.sh` script does.
feat: add script to remove untagged images
Adding a reference to the LICENSE.md file in the main readme file for
this project. This is to clarify what kind of licensing is this
repository released under.
@felipecrs
Copy link
Contributor

felipecrs commented Apr 30, 2020

@mcastellin Adding convenience script that removes untagged images from the local registry. I find myself with a lot of unused and untagged images when I develop new Dockerfiles and I need a fast way to remove old images that are generated during development and left eating up disk space.

How about docker system prune -a?

@mcastellin
Copy link
Author

@felipecassiors I never tried the -a option before the removes all unused instead of dangling only. Thanks, I'll give this command a try and see if it serves the same purpose

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

Successfully merging this pull request may close these issues.

2 participants