docker push
The command that uploads a local image to a registry.
In more detail
It needs credentials for the registry and permission to write to the repository. The registry answers with the digest of the stored bytes, which is the image's exact identity.
Examples
docker push "ghcr.io/acme/checkout:$GITHUB_SHA"docker push registry.example.com/team/taskapi:0.1Related terms
- registry — A server that stores images and lets clients push and pull them by name, tag or digest.
- docker build — The command that builds an image from a Dockerfile and a build context.
- digest — A SHA-256 hash of an image's manifest that identifies its exact content and can never be moved to other bytes.
- docker login — Signs the Docker CLI in to a registry so you can push, or pull private images.
- docker tag — Gives an existing image an extra name and tag; no data is copied.
Taught in
- Building and Pushing Container Images — Continuous Integration & Continuous Delivery Pipelines
- Docker, OCI, The Engine And The CLI — Docker Architecture & Production Containers
- Authenticate, Tag, Push And Pull From A Registry — Docker Architecture & Production Containers
- Build, Test And Promote The Same Image In CI — Docker Architecture & Production Containers