ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 14 - DCA discussion

Report
Export

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

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

Deleting the image and the image repository from Docker Trusted Registry will not completely delete the image from disk. This is because deleting a repository or a tag only removes the reference to the image, but not the image itself.The image is still stored as a blob on the disk, and can be accessed by its digest1.To completely delete the image from disk, you need to enable the deletion feature in the registry configuration, and then use the API to delete the image by its manifest2.Alternatively, you can manually delete the image files from the registry storage directory, but this is not recommended3.After deleting the image, you also need to run the garbage collector to reclaim the disk space4.Reference:

Docker Registry HTTP API V2

How to delete images from a private docker registry?

Remove docker image in registry by removing files/folders on server

Garbage collection

asked 08/11/2024
metodija durtanoski
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first