liveBook · Manning

Docker push

As explained in Learn Docker in a Month of Lunches, Second Edition

The docker image push command uploads a local container image to a registry.

docker push uploads a local image to a container registry. Docker uses the image reference to select the repository and tag, then transfers the image layers. section 5.2

Use this workflow to share an image on Docker Hub:

  • Log in with your Docker ID. section 5.2
  • Create a registry-qualified tag, such as $dockerId/image-gallery:v1. section 5.2
  • Push the qualified tag with docker image push. section 5.2
  • Check the registry listing for the tag and update time. section 5.2

Push version 1

docker image tag image-gallery $dockerId/image-gallery:v1 docker login --username $dockerId docker image push $dockerId/image-gallery:v1 Successful output lists pushed layer IDs and ends with a digest for v1. section 5.2

docker image push $dockerId/image-gallery:v1

Run the exact push command after logging in and tagging the image. section 5.2

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains tagging, authentication, layer uploads, cache matching, and registry verification without detailing registry internals.
Examples
Uses image-gallery, the v1 tag, Docker Hub login, layer upload output, and a browser registry listing.
What it assumes
Assumes a local image and Docker ID while demonstrating authentication and registry-qualified tagging.
What you can do after
Operate Docker CLI commands to tag, authenticate, push, and verify a Docker Hub image.
How it connects
Connects image references, Docker Hub, image layers, Docker registries, docker pull, and Dockerfile optimization.

Also explained in

Compare how 2 books explain docker push →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.