How is a Docker container image retrieved from a Docker registry?
How is a Docker container image retrieved from a Docker registry?
Docker container images are retrieved from a Docker registry by pulling multiple stacked images that are layered on top of each other. Each image layer represents an intermediate state of the image, and these layers are combined to form the final container image. This approach allows for efficient storage and transfer, as layers can be shared between different images. The Docker engine uses these layers to reconstruct the file system of the container when starting and running it.
B. is the most accurate answer here but it's a little confusing because it references multiple images (i.e., a repository) and the question refers to a single container image. "docker pull" can retrieve both a single image and a repo but in reference to this question, the command retrieves the layers that make up a single container image. https://docs.docker.com/engine/reference/commandline/pull/
https://docs.docker.com/engine/reference/commandline/pull/