liveBook · Manning

Private registry

As explained in Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

A private container registry is a container registry whose stored images are restricted to authorized users or systems.

A private container registry stores container images behind access restrictions, giving a proprietary application a controlled place to publish images before deployment. section 3.0

Use the registry in a deployment workflow:

  • Package a microservice and its dependencies into a Docker image. section 3.0
  • Publish the image to the private registry. section 3.6
  • Pull or instantiate the image locally, then deploy it to a Kubernetes cluster. section 3.0 section 3.6

Creating an Azure registry

Create the registry through the Azure portal by choosing Create a Resource, searching for Container Registry, selecting the Microsoft service, and completing its configuration. Review its authentication details before publishing images. Destroy unused resources later to avoid continued charges; the same registry can subsequently be defined with Terraform. section 3.9.1 section 7.9

Figure 3.3 Publishing Docker images to our private container registry in the cloud

Shows the path from a Node.js microservice project to a Docker image, private cloud registry, and eventual Kubernetes deployment. section 3.6

How Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform covers it

How deep it goes
Builds a registry manually through Azure portal, then revisits its creation through Terraform.
Examples
Uses Azure portal creation, authentication details, and publishing a video-streaming microservice image.
What it assumes
Assumes a Dockerized microservice and cloud account; introduces registry creation before deployment.
What you can do after
Operate/configure a private registry manually in Azure and prepare it for image publication.
How it connects
Connects Docker images, microservices, Kubernetes clusters, Azure, and Terraform.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform. The section links point to the parts of the book it draws on.