liveBook · Manning

Container registry

As explained in Kubernetes for Developers

A container repository is a storage location that stores and distributes container images identified by image names and tags.

A container registry stores container image data and makes images available for Kubernetes to fetch. It connects the local image you build on your machine with the cloud environment where Kubernetes runs it. section 3.2.2

Registries can be public or private. Public images suit open-source projects, shared samples, and common base images; private images protect proprietary applications and require authentication. section 3.2.2

A practical upload workflow is:

  • Create an account and a repository with the registry provider. section 3.2.2
  • Configure authentication, especially when using private images. section 3.2.2
  • Tag the local image with the registry host, project or username, repository, and version tag. section 3.2.2
  • Push the tagged image so Kubernetes can retrieve it during deployment. section 3.2.2 section 3.5

Uploading a versioned image

A local image named timeserver can be tagged as us-docker.pkg.dev/wdenniss/ts/timeserver:1 and pushed to Artifact Registry. Kubernetes can then use that repository path and version tag when creating the workload. section 3.2.2 section 3.5

Docker Hub is a common public choice. For private images, a cloud provider’s registry commonly simplifies authentication and can reduce image-pull time and network data costs. section 3.2.2

How Kubernetes for Developers covers it

How deep it goes
Explains storage, visibility, authentication, provider choice, tagging, and pushing, but stops short of registry internals.
Examples
Uses Docker Hub, Artifact Registry, tagged timeserver images, docker push, and versioned repository paths.
What it assumes
Assumes a locally built container image and introduces repository creation, authentication, image tagging, and pushing.
What you can do after
Build and upload a versioned container image that Kubernetes can fetch for deployment.
How it connects
Connects container images with Kubernetes, Docker, repositories, Deployments, Pods, and Services.

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 Kubernetes for Developers. The section links point to the parts of the book it draws on.