docker push Explained
What docker push does, with an example.
Published November 8, 2026
docker push uploads a local image to a registry so others (and servers) can pull it. The image name must include the registry and repository.
How it works
Tag the image with the registry path first, and log in. Layers already present on the registry are skipped.
In CI you usually push on each build.
Try it
docker tag myapp:1.0 ghcr.io/me/myapp:1.0
docker push ghcr.io/me/myapp:1.0
The push refers to repository [ghcr.io/me/myapp]
Practical examples
Login, tag, push
docker login ghcr.io
docker tag myapp:1.0 ghcr.io/me/myapp:1.0
docker push ghcr.io/me/myapp:1.0Docker Hub
docker tag myapp me/myapp:1.0
docker push me/myapp:1.0Multi-arch with buildx
docker buildx build --platform linux/amd64,linux/arm64 -t me/myapp:1.0 --push .Push all tags
docker push --all-tags me/myappCommon mistakes
- Pushing secrets baked into layers.
- Pushing to the wrong repository.
- Not tagging versions (only latest).
Key takeaways
- docker push uploads a local image to a registry so others (and servers) can pull it.
- Run docker <command> --help for all options.
- Clean up unused resources regularly.
FAQ
denied: requested access?
You are not logged in or lack permission for that repository.
Where can I see all options?
Run the command with --help.