docker pull
Downloads an image from a registry to your machine.
In more detail
It fetches the manifest, then only the layers you do not already have, and checks each against its digest. docker run pulls automatically if the image is missing. Pull by digest (name@sha256:...) to get exact content.
Example
docker pull alpine:3.20Related terms
- registry — A server that stores images and lets clients push and pull them by name, tag or digest.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
- layer — One read-only slice of an image that records the files a single build step added, changed or deleted.
- docker push — The command that uploads a local image to a registry.
Taught in
- Union Filesystems, Images And Writable Layers — Docker Architecture & Production Containers
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Pull And Inspect A Third Party Image — Docker Architecture & Production Containers
- Authenticate, Tag, Push And Pull From A Registry — Docker Architecture & Production Containers