Skip to content
Blockchain Association of Cameroon
BAC-L1-FOUND-117FoundationBeginner

Docker and reproducible environments

"Works on my machine" is not a result. Packaging a node and its dependencies so the lab runs identically everywhere.

Level
L1Blockchain developer
Duration
4 h
Track
Foundation
Maintainer
Developer Curriculum Architect

Learning objectives

  • 01Write a reproducible, versioned image
  • 02Compose a local multi-container network
  • 03Manage persistent volumes and chain data

Guided lab

Containerise a test node and bring up a three-node network that talks to itself.

Independent lab

Halve the image size without losing functionality, and document how.

Security angle

Unprivileged container, minimal base image, secrets kept out of the Dockerfile.

Assessment

Local network reproduced by a peer from the repository alone.