https://github.com/docwhat/docker-registry-garbage-collect
https://github.com/docwhat/docker-registry-garbage-collect
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/docwhat/docker-registry-garbage-collect
- Owner: docwhat
- Created: 2015-09-15T14:22:44.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T02:09:14.000Z (over 5 years ago)
- Last Synced: 2025-02-15T21:18:16.699Z (over 1 year ago)
- Language: Ruby
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-registry-garbage-collect
> The new home page is [docwhat/docker-registry-garbage-collect on
github](https://github.com/docwhat/docker-registry-garbage-collect).
Docker Registery version 1 has one huge glaring problem: It doesn't clean up
"dangling" or "orphaned" images.
This happens when you push up "foobar:latest" and it clobbers a previous
"foobar:latest". The images that made up the previous versions are now
orphaned and left floating in limbo.
## Notes
For maximum paranoia, the script will not remove images from the last hour.
This is in case you're uploading something that hasn't been tagged yet.
## License
Public domain. This stuff is trivial and it is needed.
## Credits
* The [original shell
script](https://gist.github.com/shepmaster/53939af82a51e3aa0cd6) was done by
[shepmaster](https://gist.github.com/shepmaster).
* [bjaglin](https://gist.github.com/bjaglin) created a [second version shell
script](https://gist.github.com/bjaglin/1ff66c20c4bc4d9de522).
* The [final shell script](https://gist.github.com/kwk/c5443f2a1abcf0eb1eaa),
which I ported here, was by [kwk](https://gist.github.com/kwk).