Infrastructure

Course Intermediate Free

Docker & Docker Compose — The course

Images, containers, volumes, networks and Compose: vocabulary, essential commands and good practice.

  • 3 guides
  • 132 concepts
Start reading

Guides

  1. 01 Guide Docker glossary Core vocabulary and concepts 39 concepts
  2. 02 Guide Docker & Docker Compose commands An annotated cheat sheet of the essential commands 43 concepts
  3. 03 Guide Dockerfile & compose.yaml Understanding, writing and reviewing configurations 50 concepts

Suggested path

  1. 01. Understand the glossary concepts
  2. 02. Practise the commands on non-critical data
  3. 03. Read, annotate then modify Dockerfile and compose.yaml files

Sources and references

Teaching reference: the examples assume a working Docker installation. Do not copy real secrets into the exercises.

Example files

dockerfile
# Exemple didactique : application Node.js
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]
compose
name: demo-docker
services:
  web:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8080:3000"
    environment:
      NODE_ENV: production
    restart: unless-stopped
ignore
node_modules
.git
.env
.DS_Store

In the same series Step 1 of 2

  1. 1 Course Docker & Docker Compose — The course You are here
  2. 2 Lab Docker & Docker Compose labs

Share this article

In the same category

Course

Infrastructure · Intermediate

Kubernetes — The course

Pods, deployments, services, configuration and storage: orchestrating containers, from theory to kubectl.

3 guides · 159 concepts In the same series

Course

Infrastructure · Intermediate

Terraform & Ansible — The course

Describe infrastructure with Terraform and configure it with Ansible: providers, playbooks, roles and idempotence.

3 guides · 146 concepts In the same series

Lab

Infrastructure · Intermediate

Docker & Docker Compose labs

Three progressive labs: build, configure then expose a multi-service application with Compose.

3 labs · 53 steps In the same series