= The sequence of steps will not completely delete an image from disk in the Docker Trusted Registry. Deleting the image and removing permissions to the repository will only remove the image from the registry’s user interface and prevent unauthorized access to it. However, the image data will still remain on the registry’s storage backend until garbage collection is performed1. Garbage collection is a process that removes unused blobs (layers) from the registry’s storage2. To run garbage collection, the registry must be stopped and the command bin/registry garbage-collect /etc/docker/registry/config.yml must be executed3. Alternatively, the registry can be configured to run garbage collection automatically at regular intervals4. References:
Deleting images | Docker Documentation
Garbage collection | Docker Documentation
How to delete images from a private docker registry? | Stack Overflow
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit