The Stpes to GC in product
Steps:
detect and make sure
- docker stop $registry
- docker run -it –name gc –rm –volumes-from registry registry:2.5.0 garbage-collect –dry-run /etc/registry/config.ym
delete truely
- docker run -it –name gc –rm –volumes-from registry registry:2.5.0 garbage-collect /etc/registry/config.yml
- docker start $registry
Code Analysis of Registry GC
run-dry GC demo
run-dry will print the blobs to be deleted, but will not be deleted truely.
hello-world
hello-world: marking manifest