Docker Certified Associate (DCA) — Question 20

Will this sequence of steps completely delete an image from disk in the Docker Trusted Registry?
Delete the image and run garbage collection on the Docker Trusted Registry.

Answer options

Correct answer: A

Explanation

The correct answer is 'Yes' because deleting the image followed by running garbage collection in the Docker Trusted Registry ensures that all references to the image are removed, allowing the space to be reclaimed. The other option, 'No', is incorrect as the steps outlined are specifically designed to achieve complete deletion.