From the course: DevOps Foundations: Your First Project

Unlock the full course today

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

Writing your first Dockerfile

Writing your first Dockerfile

From the course: DevOps Foundations: Your First Project

Start my 1-month free trial

Writing your first Dockerfile

- [Carlos] The life of a Docker container image starts with the single file. The Dockerfile, Dockerfiles are manifests that describe the image that the container will use when we run it. When we create the container that will run our website, Docker will do a few things. The first thing that it'll do is it will read and parse the Dockerfile. The second thing it will do is it will fetch the parent image that this image is going to use, and I'll explain how that works in a minute. If you don't have a parent image that you're going to use, you would start from scratch. Again I will explain this in a minute. Third it will run any commands, within the Dockerfile that are on top of that image and lastly if defined you can set a process that will run whenever a container from that image is spun up. So unlike any traditional configuration management tools, like Chef, Puppet, Ansible or CFEngine all of the configuration…

Contents