User Tools

Site Tools


wiki:deleting_images_private_docker_registry

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:deleting_images_private_docker_registry [2024/01/11 11:25] – created antisawiki:deleting_images_private_docker_registry [2024/01/12 11:30] (current) – [Deleting images from private docker registry] add garbage collect info antisa
Line 27: Line 27:
   curl --request DELETE --header "Accept: application/vnd.docker.distribution.manifest.v2+json" localhost:52000/v2/test/manifests/sha256:FEWIoj3242ji   curl --request DELETE --header "Accept: application/vnd.docker.distribution.manifest.v2+json" localhost:52000/v2/test/manifests/sha256:FEWIoj3242ji
 </WRAP> </WRAP>
 +
 +However, delete only removes references within the repositories. To recover space you will need to [[https://distribution.github.io/distribution/about/garbage-collection/#run-garbage-collection|garbage collect]]. Example when running registry directly on server:
 +
 +  docker run --rm registry:2 garbage-collect [--dry-run] /etc/docker/registry/config.yml
 +
 +Example when running registry as a docker container:
 +
 +  docker exec -it docker-registry sh # enter container first
 +  /bin/registry garbage-collect [--dry-run] /etc/docker/registry/config.yml
  
 ====== Tested on ====== ====== Tested on ======
wiki/deleting_images_private_docker_registry.1704968729.txt.gz · Last modified: 2024/01/11 11:25 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki