Modern cloud-based web applications such as Azure Web Apps can automatically pull new Docker images into production. There is also a great deal of DevOps tools that can pull images and run them through various tests before deploying them with Docker container instances or docker orchestration tools such as Kubernetes. But for them to do this one must first put them into a container registry such as Azure Container Registry or Docker Hub. To do this we will need to do a few steps. First, we will build our container. Next, we can run our container to ensure that it works. Then we log into our container registry service and push the container to it. The detailed steps are as follows:
- First, we build the container. To do it we navigate to the folder with the docker file and run docker build. We are going to tag it with the -t command to ch4. We then specify that the docker file is in the local folder with the period .:
docker build -t ch4 .
- Now that we...