Docker pull: downloading images
Quick answer
docker image pull retrieves an image from a registry into the image store of the selected Docker daemon. It does not create or start a container.
How it works
Use a reviewed repository and tag. Docker can reuse layers already present locally. A pull can still contact a registry even when layers are cached, because the tag may have moved. Network access, authorization and a compatible platform matter. The separate approved online demonstration below is optional; never run it in an offline or production context.
Lab prerequisites
Use only a disposable approved Linux-container Docker context. Confirm the active context with docker context show before any mutation. The instructor must preload and review busybox:1.37 for the target platform and record its digest. The tag is a fixture convention inherited from earlier chapters, not a verified immutable version. Commands are static examples, not executed by ByteMind. Before any engine request, confirm the effective approved daemon endpoint, including DOCKER_HOST, DOCKER_CONTEXT and CLI overrides; do this privately in each terminal. Confirm the local tag still resolves to the approved image identity and platform. If any check fails, use the paper exercise instead.
The first command is an optional mutable-tag demonstration, not a reproducible installation command. Only the lab owner may authorize the registry, network and resulting image content in the disposable online lab. A tag can move after review; do not run the retrieved image until its identity and platform are approved again. Otherwise skip the pull. For fixed content use the approved repository digest, not a made-up value.
Command example
Only with explicit permission for Docker Hub access and prior review of the tag: the pull should make the selected image available locally. Transfer messages, size and digest depend on the registry and cache. If access is not approved, skip the pull and use the preloaded fixture for the second command. If a pull changes the preloaded tag, the rest of the offline curriculum must use a separately re-approved fixture; do not assume the previous approval carries over.
Common mistakes
A pull failure does not automatically mean the image name is wrong. Check the context, reference, network and access permissions; do not disable TLS to bypass a failure.
Manual practice
Compare docker image ls busybox:1.37 before and after an authorized pull, or explain the expected change offline. No container needs to be started.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Docker pull: downloading images — Knowledge check
Apply the concepts from this lesson.
What does a successful pull of the named tag make available on the selected daemon?
Why might a cached image still require registry access during pull?
What is a sensible response to a pull failure?