hands-on lab

Docker: Exploring the Dockerfile

Difficulty: Intermediate
Duration: Up to 3 hours
Students: 275
Rating: 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.

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

Updates

July 22nd, 2024 - Resolved Dockerfile and check issue

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