DCA · Question #57
Will this sequence of steps completely delete an image from disk in the Docker Trusted Registry? Solution: Delete the image and delete the image repository from Docker Trusted Registry
The correct answer is A. Yes. This question evaluates if deleting an image and its repository from DTR results in complete deletion from disk.
Question
Will this sequence of steps completely delete an image from disk in the Docker Trusted Registry? Solution: Delete the image and delete the image repository from Docker Trusted Registry
Options
- AYes
- BNo
How the community answered
(20 responses)- A85% (17)
- B15% (3)
Why each option
This question evaluates if deleting an image and its repository from DTR results in complete deletion from disk.
When an image is deleted and its containing repository is also deleted in Docker Trusted Registry, all metadata references to the image's layers are removed, making those layers eligible for physical removal from disk during a subsequent garbage collection run, thus achieving complete deletion.
Deleting both the image and its repository removes all high-level references within DTR's metadata, which is the necessary precursor for garbage collection to physically reclaim the associated disk space.
Concept tested: DTR image and repository deletion
Source: https://docs.mirantis.com/docker-enterprise/v3.1/dtr/admin/configure-dtr/run-garbage-collection.html
Topics
Community Discussion
No community discussion yet for this question.