nerdexam
Docker

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.

Submitted by kim_seoul· Apr 18, 2026Image Creation, Management, and 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)
  • A
    33% (15)
  • B
    67% (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.

AYes

If other references to an image's layers exist after an initial image deletion, running garbage collection will not remove those layers from disk.

BNoCorrect

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

#Docker Trusted Registry (DTR)#Image deletion#Garbage collection#Registry storage management

Community Discussion

No community discussion yet for this question.

Full DCA Practice