Advertisement
Intermediate Node.js, Cloud & DevOps

What is a container registry, and how does it fit into the deployment pipeline for a containerized Node.js application?

Short answer

A container registry stores and versions built Docker images -- after CI builds and tags an image, it's pushed to the registry, from which the deployment target pulls the specific tagged version to run, providing a consistent, immutable artifact identical across every…

Save Node.js mock interview
Advertisement
AModel answer
A container registry stores and versions built Docker images -- after CI builds and tags an image, it's pushed to the registry, from which the deployment target pulls the specific tagged version to run, providing a consistent, immutable artifact identical across every environment.
docker build -t 123456789.dkr.ecr.us-east-1.amazonaws.com/myapp:v1.2.3 .
docker push 123456789.dkr.ecr.us-east-1.amazonaws.com/myapp:v1.2.3
Real-world example
A team tags every image with the Git commit SHA, pushes to a private ECR registry, and deploys that exact immutable image to staging then production.
Likely follow-ups
  • Why is tagging images with 'latest' risky for production deployments compared to an immutable version tag?
  • How do private registries handle authentication for pulling images?
Related topics