ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 156 - 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 remove permissions to the repository in the Docker

Trusted Registry.

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

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 commandbin/registry garbage-collect /etc/docker/registry/config.ymlmust be executed3.Alternatively, the registry can be configured to run garbage collection automatically at regular intervals4.Reference:

Deleting images | Docker Documentation

Garbage collection | Docker Documentation

How to delete images from a private docker registry? | Stack Overflow

Automating garbage collection | Docker Documentation

asked 08/11/2024
Solomon Waya
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first