Pushing a Docker image to a private registry (ACR)
In the previous section, we learned how to push a Docker image to Docker Hub, which is a public registry. Now, we will learn how to push a Docker image to a private registry.
There are a lot of on-premises or cloud solutions that enable the Docker private registry. Here is a list of these solutions:
- Docker registry server: https://docs.docker.com/registry/deploying/
- Artifactory from JFrog: https://www.jfrog.com/confluence/display/JFROG/Docker+Registry
- Amazon Elastic Container Registry (ECR): https://aws.amazon.com/ecr/
- Google Container Registry (GCR): https://cloud.google.com/container-registry
- ACR: https://azure.microsoft.com/en-us/services/container-registry/
In this section, we will study the use of one of these solutions—ACR.
To push a Docker image into ACR, we will proceed with these steps:
- Before pushing a Docker image, we will create an ACR resource using one of the following...