Learning paths / Foundations
Learning path 38 modules40 lessons open
Containers
Images, containers, Dockerfiles, registries, Compose and volumes, ending with your own image running on ComputeSphere.
At a glance
- Level
- Beginner to intermediate
- Duration
- About 8 hours
- Modules
- 8
- Verified labs
- 2
- Prerequisites
- Application foundations recommended; module 1 sets up Docker
Modules in this path
- 1. Why containersSet up Docker, reproducible environments
- Set up Docker Reading, 10 min
- "Works on my machine" and why containers fix it Video and reading, 12 min
- Containers vs virtual machines, revisited Reading, 6 min
- Check: why containers Knowledge check, 5 min
- 2. Images and layersLayers, tags, digests, base images
- Images are layers Reading, 6 min
- Tags and digests Reading, 6 min
- Choosing a base image Reading, 6 min
- Try it: inspect an image's layers Reading, 12 min
- Check: images Knowledge check, 5 min
- 3. Running containersPorts, environment, logs
- Running a container: ports and environment Reading, 6 min
- Logs, exec and restart behaviour Reading, 6 min
- Try it: run, inspect and stop a container Reading, 15 min
- Check: running containers Knowledge check, 5 min
- 4. Writing DockerfilesMulti-stage, non-root, small images
- Anatomy of a Dockerfile Video and reading, 13 min
- Multi-stage builds Reading, 6 min
- Non-root users and least privilege in images Reading, 5 min
- .dockerignore and build context Reading, 5 min
- Try it: shrink an image from 1.4 GB to 20 MB Reading, 25 min
- Check: Dockerfiles Knowledge check, 5 min
- 5. RegistriesPushing, pulling, private registries
- Registries, repositories and tags Reading, 5 min
- Private registries and credentials Reading, 5 min
- Try it: push to a registry Reading, 12 min
- Check: registries Knowledge check, 5 min
- 6. Docker ComposeA local stack in one file
- Why Compose: a stack in one file Reading, 6 min
- Try it: app plus database with Compose Reading, 15 min
- From Compose to ComputeSphere with csph import compose Reading, 6 min
- Lab: from Compose to ComputeSphere Verified lab, 40 min
- Check: Compose Knowledge check, 5 min
- 7. Persistent storageVolumes vs the container filesystem
- The container filesystem is temporary Reading, 6 min
- Volumes and bind mounts Reading, 6 min
- Try it: lose data, then keep it with a volume Reading, 15 min
- On ComputeSphere: SphereStor volumes mounted on a service Reading, 5 min
- Check: storage Knowledge check, 5 min
- 8. Containerize a real appNode.js, Python and Go recipes
- A health endpoint in every app Reading, 6 min
- Recipe: containerize a Node.js app Reading, 6 min
- Recipe: containerize a Python app Reading, 6 min
- Recipe: containerize a Go app Reading, 6 min
- Try it: containerize a provided app Reading, 30 min
- Check: containerizing Knowledge check, 5 min