From the course: Azure for DevOps: Containers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building and running a Dockerfile

Building and running a Dockerfile - Azure Tutorial

From the course: Azure for DevOps: Containers

Start my 1-month free trial

Building and running a Dockerfile

- [Man] Let's have a look at the life cycle of a containerized application in Docker. We start off with a Dockerfile. A Dockerfile is like source code for Docker images. After we have written our Dockerfile, we build it. A Dockerfile is built using the Docker Build command. The result of the build, is a Docker image. Which represents our application. It contains everything needed for our application to run. We can shift the container image anywhere where Docker is installed. Now we can finally run the application using Docker run. A Dockerfile is composed from a Base image. There are dozens of official images available from Docker Hub, a repository of Docker images. It's a good idea to use one of the official base images. So that you have the latest updates and security configurations taken care for. Dockerfile is built in the context of the folder in the file system, where the Dockerfile is located. A Dockerfile…

Contents