Storing Containers

Running container workloads on Kubernetes requires container images to be stored within a repository where the container orchestration platform can easily access them. A container registry is commonly used to store and retrieve container images in cloud-native scenarios. There are many container registries for developers to choose from such as Docker Hub and Azure Container Registry.

Container images are normally created as part of a team's CD pipeline when an automated CI system builds the container and stores it within a container registry. Once stored in the container registry, the container image can be pulled by other developers or platforms like Kubernetes.

Container registry setup

For this course, we'll keep things simple by manually storing container images within a public Docker Hub registry. Before proceeding, we'll need to create a free container registry on Docker Hub.

To store container images within the Docker Hub container registry, we'll need to create a repository for the container images. To create the repository, click the "Create repository" button on the Docker Hub landing page.

Get hands-on with 1200+ tech skills courses.