You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Building images locally is just the beginning. To share, deploy, and version your images, you need to understand registries, tagging strategies, and image lifecycle management. This lesson covers Docker Hub, private registries, tagging, pushing/pulling, image inspection, and housekeeping.
A container registry is a storage and distribution service for container images. It works like a package repository (npm, PyPI) but for Docker images.
+------------------+ push +------------------+
| Developer | ----------------> | Registry |
| (docker push) | | (Docker Hub, |
+------------------+ pull | ECR, GCR, |
| CI/CD Server | <---------------- | GHCR, etc.) |
| (docker pull) | +------------------+
+------------------+
| Registry | Provider | URL |
|---|---|---|
| Docker Hub | Docker | hub.docker.com |
| GitHub Container Registry (GHCR) | GitHub | ghcr.io |
| Amazon ECR | AWS | *.dkr.ecr.region.amazonaws.com |
| Google Artifact Registry | *.pkg.dev | |
| Azure Container Registry | Microsoft | *.azurecr.io |
| GitLab Container Registry | GitLab | registry.gitlab.com |
Docker Hub is the default registry. When you run docker pull nginx, Docker pulls from Docker Hub.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.