liveBook · Manning

Container registry

As explained in Road to Kubernetes

A container registry is a storage and distribution service for container images.

A container registry stores, hosts, and distributes container images. It plays a role similar to a Git repository for code, giving deployment systems a place to download packaged applications. section 5.5 section 5.6

The deployment path builds an image from a Dockerfile, pushes it to a registry, and later lets a container runtime or deployment platform pull and run it. This separates packaging from execution. section 1.2 section 1.4

A practical Docker Hub workflow is:

  • Create a Docker Hub account and choose a username. section 5.5
  • Log in from the command line with docker login. section 5.5
  • Build and tag an image with docker build -t <your-username>/<your-container-name>:<your-tag> -f <your-dockerfile>. section 5.5
  • Upload the image with docker push <your-username>/<your-container-name>:<your-tag>. section 5.5

Pulling an NGINX image

Running docker run nginx makes Docker look for the image locally. If it is missing, Docker automatically pulls it from Docker Hub, the default registry, before starting the container. section 5.1.1

Figure 1.2 Code path to Kubernetes

Use the deployment path to connect source changes, container image creation, registry storage, and later Kubernetes deployment. section 1.2

How Road to Kubernetes covers it

How deep it goes
Explains registry purpose, default behavior, account setup, authentication, image tagging, and pushing, but defers self-hosted registry operation.
Examples
Uses Docker Hub, the official NGINX image, docker run nginx, and a tagged Python application image.
What it assumes
Builds on Dockerfiles and container images, then teaches registry use through Docker Hub commands and image distribution.
What you can do after
Operate Docker Hub by logging in, building a tagged image, pushing it, and pulling images for container execution.
How it connects
Connects container images with Dockerfiles, Docker, container runtimes, Docker Hub, GitHub Actions, and Kubernetes.

Also explained in

Compare how 8 books explain container registry →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Road to Kubernetes. The section links point to the parts of the book it draws on.