DCA · Question #58
Will this sequence of steps completely delete an image from disk in the Docker Trusted Registry? Solution: Delete the image and run garbage collection on the Docker Trusted Registry.
The correct answer is B. No. The question asks if deleting an image and then running garbage collection is sufficient to completely remove it from disk in Docker Trusted Registry.
Question
Will this sequence of steps completely delete an image from disk in the Docker Trusted Registry? Solution: Delete the image and run garbage collection on the Docker Trusted Registry.
Options
- AYes
- BNo
How the community answered
(46 responses)- A33% (15)
- B67% (31)
Why each option
The question asks if deleting an image and then running garbage collection is sufficient to completely remove it from disk in Docker Trusted Registry.
If other references to an image's layers exist after an initial image deletion, running garbage collection will not remove those layers from disk.
Simply deleting an image (e.g., untagging it) does not guarantee its complete removal from disk because other tags, manifests, or even other repositories might still reference its underlying layers; for complete deletion, all references to the image's layers must be removed before garbage collection can reclaim the space.
Concept tested: DTR image deletion and garbage collection nuances
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.