hands-on lab

Docker: Exploring the Dockerfile

Intermediate
Up to 3h
221
5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

Learn how to create Docker images with Dockerfiles.

Gaining a mastery of Docker starts with the Dockerfile. Creating and maintaining Dockerfiles requires an understanding of the supported instructions. This hands-on lab explores the structure and usage of Dockerfiles.

Learning Objectives

At the end of this lab you'll be familiar with the following:

  • Dockerfile instructions
    • FROM
    • RUN
    • COPY
    • ADD
    • ENTRYPOINT
    • CMD
    • EXPOSE
    • ARG
    • LABEL
  • Dockerfile concepts
    • Multi-stage builds
    • BuildKit enhanced RUN instructions

Prerequisites:

Target Audience

  • Software engineers
  • Data engineers
  • DevOps engineers
  • Site reliability engineers
About the author
Students
110,277
Labs
37
Courses
50
Learning paths
58

Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.

Covered topics
Lab steps
Web IDE Review
Introduction to Docker
Dockerfile Basics
COPY and ADD
CMD and ENTRYPOINT
EXPOSE
Build-time arguments
Multi-stage builds
BuildKit enhanced RUN
Labels
Best Practices