docker pull Explained
What docker pull does, with an example.
Published November 8, 2026
docker pull downloads an image (or a specific tag) from a registry such as Docker Hub to your machine.
How it works
Without a tag it pulls :latest. Images are stored in layers, and shared layers are not downloaded twice.
Use digests (image@sha256:...) for reproducible deployments.
Try it
docker pull postgres:16
16: Pulling from library/postgres
Status: Downloaded newer image for postgres:16
Practical examples
Specific tag
docker pull nginx:1.25From another registry
docker pull ghcr.io/owner/app:1.0By digest
docker pull nginx@sha256:abc123...All tags (careful)
docker pull -a alpineCommon mistakes
- Relying on :latest.
- Pulling from untrusted registries.
- Not logging in for private images.
Key takeaways
- docker pull downloads an image (or a specific tag) from a registry such as Docker Hub to your machine.
- Run docker <command> --help for all options.
- Clean up unused resources regularly.
FAQ
Private registries?
docker login registry.example.com first.
Where can I see all options?
Run the command with --help.