Difficulty: beginner
Estimated Time: 45-60 minutes

BoxBoat Logo

Dockerfile Lab

We've spent a lot of time talking about Docker containers and images. Now, we'll get experience working with Dockerfiles. Dockerfiles are the specification that defines a Docker image. Learning how to build Dockerfiles is one of the most important things to master as a developer.

Please email feedback to: [email protected]

Now that we've gotten some experience building Docker images, we'll put everything together and deploy a more complex application.

Dockerfiles

Step 1 of 4

First Dockerfile walkthrough

Creating your First Dockerfile

Dockerfiles are built using a Domain Specific Language (DSL).

They are very easy to understand when presented with one, although there are always intricacies in the process. Follow along with the slides, and we'll build a Dockerfile in parallel.

You can open a new file using your favorite text editor on your laptop, or use vim, which is already installed on these hosts. Navigate to /root/resources and run: vim Dockerfile