Lecture 7 — Containers: Docker & Apptainer (3h)

Lecture 7 — Containers: Docker & Apptainer (3h)#

Objectives

  • Build and run Docker images; write Dockerfiles

  • Understand Apptainer for HPC and converting Docker images

  • Best practices for container reproducibility

Content summary

Motivation for containers. Dockerfile walkthrough, build and run examples, Jupyter in a container. Discuss Apptainer and running containers on HPC. Hands-on: containerize a small Python app.