AI Instructor Live Labs Included

Container Fundamentals with Docker

Learn Docker from first principles — images, Dockerfiles, networking, volumes, and multi-stage builds.

Beginner
10h 45m
12 Lessons
CTR-100
Container Fundamentals with Docker Badge

View badge details

About This Course

Start your container journey with this hands-on course. Build Docker images from Dockerfiles, manage container networking and volumes, optimize images with multi-stage builds, and learn security best practices. Every exercise runs on a real Linux VM with Docker pre-installed. The capstone containerizes a full-stack application. Course 1 of 6 in the Container Learning Path.

Course Curriculum

12 Lessons
01
AI Lesson
AI Lesson

What Are Containers

30m

Learn what containers are, how they compare to VMs, and master the Docker CLI for running, inspecting, and managing containers.

02
Lab Exercise
Lab Exercise

What Are Containers - Lab Exercises

1h 15m 1 Exercises

Containers vs VMs (isolation, shared kernel, efficiency), Docker architecture (engine, daemon, CLI, containerd), running containers (docker run, -d, -it, --name, --rm), container lifecycle (start/stop/restart/remove, docker ps -a), inspecting containers (docker logs, exec, inspect, stats)

Exploring Docker Containers: Your First Container Journey Exploring Docker Containers: Your First Container Journey ~30 min
03
AI Lesson
AI Lesson

Docker Images and Dockerfiles

35m

Build custom Docker images with Dockerfiles. Learn FROM, COPY, RUN, CMD, ENTRYPOINT, and image management commands.

04
Lab Exercise
Lab Exercise

Docker Images and Dockerfiles - Lab Exercises

1h 15m 1 Exercises

Image anatomy (layers, union filesystem, base images, tags), Dockerfile instructions (FROM, COPY, RUN, WORKDIR, EXPOSE, CMD, ENTRYPOINT), building images (docker build -t, build context, .dockerignore), CMD vs ENTRYPOINT (exec form vs shell form), image management (docker images, rmi, tag, history)

Building and Managing Docker Images with Dockerfiles Building and Managing Docker Images with Dockerfiles ~30 min
05
AI Lesson
AI Lesson

Container Networking

35m

Understand Docker networking models including bridge, host, and overlay networks. Learn to connect containers, expose ports, and enable service communication.

06
Lab Exercise
Lab Exercise

Container Networking - Lab Exercises

1h 15m 1 Exercises

Default bridge network, user-defined networks (docker network create, DNS by name), port mapping (-p host:container, -P), multi-container communication (web app + database), network troubleshooting (docker network inspect, exec ping)

Docker Container Networking Fundamentals Docker Container Networking Fundamentals ~30 min
07
AI Lesson
AI Lesson

Volumes and Persistent Data

30m

Master Docker volumes and bind mounts for persisting data beyond container lifecycles. Learn volume drivers, backup strategies, and data sharing between containers.

08
Lab Exercise
Lab Exercise

Volumes and Persistent Data - Lab Exercises

1h 15m 1 Exercises

Container filesystem problem (data lost on remove), named volumes (docker volume create, -v name:/path), bind mounts (-v /host:/container, live reload), tmpfs mounts, volume management (ls, inspect, prune)

Understanding Docker Volumes and Persistent Data Understanding Docker Volumes and Persistent Data ~30 min
09
AI Lesson
AI Lesson

Image Optimization and Best Practices

35m

Optimize Docker images for size and security using multi-stage builds, layer caching, minimal base images, and vulnerability scanning best practices.

10
Lab Exercise
Lab Exercise

Image Optimization and Best Practices - Lab Exercises

1h 15m 1 Exercises

Multi-stage builds (separate build and runtime, reduce size), layer caching (instruction order, COPY requirements first), security (non-root USER, minimal base images, no secrets in images), .dockerignore, image scanning (docker scout)

Container Image Optimization and Best Practices Container Image Optimization and Best Practices ~30 min
11
AI Lesson
AI Lesson

Capstone Briefing Containerize a Full Stack App

30m

Capstone briefing for containerizing a full-stack application. Review the architecture, requirements, and approach for the hands-on challenge ahead.

12
Lab Exercise
Lab Exercise

Capstone Containerize a Full Stack App

1h 15m 1 Exercises

Capstone: containerize PackShip e-commerce app - Python FastAPI backend (multi-stage Dockerfile, non-root user), PostgreSQL database (named volume), Redis cache (alpine), custom bridge network, port mapping, .dockerignore, image under 150MB

Capstone: Containerize a Full Stack Application Capstone: Containerize a Full Stack Application ~30 min

This course includes:

  • 24/7 AI Instructor Support
  • Live Lab Environments
  • 6 Hands-on Lessons
  • 6 Months Access
  • Completion Badge
  • Certificate of Completion
Container Fundamentals with Docker Badge

Earn Your Badge

Complete all lessons to unlock the Container Fundamentals with Docker achievement badge.

Category
Skill Level Beginner
Total Duration 10h 45m
Container Fundamentals with Docker Badge
Achievement Badge

Container Fundamentals with Docker

Demonstrates proficiency in Docker containers — images, Dockerfiles, networking, volumes, and multi-stage builds.

Course Container Fundamentals with Docker

Skills You'll Earn

Docker Containers Dockerfiles Container Networking Volumes Multi-Stage Builds

Complete all lessons in this course to earn this badge