Summary
In this chapter, we presented Docker and its essential concepts. We discussed the necessary steps to create a Docker Hub account, and then we installed Docker locally with Docker Desktop.
We created a Dockerfile that details the composition of a Docker image of a web application, and we also looked at the principal instructions that it is composed ofโ FROM
, COPY
, and RUN
.
We executed the docker build
and docker run
commands to build an image from our Dockerfile and execute it locally, and then pushed it to Docker Hub using the push
command.
In the second part of this chapter, we implemented and executed a CI/CD pipeline in Azure Pipelines to deploy our container in an ACI resource that was provisioned with Terraform. Then, we discussed the use of Docker for running command-line tools such as Terraform.
Finally, we learned to install and use Docker Compose to create multiple application containers and deploy them in ACI.
In the next chapter, we will continue...