Skill · Containers · Build and run containers
Build an OCI image
Write an efficient Dockerfile and its .dockerignore, choose the image's base and check what a FROM change breaks, separate build and runtime with a multi-stage build, pass a build secret with BuildKit without leaving it in the image, build with Buildx for several platforms while checking each variant, then test the resulting image: startup, configuration, user, shutdown and health check.
Start lesson 1The Containers domain
- 10 lessons
- ~16 h 10 of reading
- 10 quizzes
- 2 proof labs
Lessons
How to learn it
This skill is learned with the tool of your choice; your preferences decide the path followed in your journey. Each path lists its lessons in program order.
With Docker
10 lessons · ~16 h 10 default
Part 1 · Build and publish an image 4 lessons · ~5 h 20
Part 2 · Build advanced images 4 lessons · ~6 h 40
Part 3 · Test, shrink and deliver an image 2 lessons · ~4 h 10
- 9Test the contract of an image· 150 min
- 10Inspect and shrink a Docker image without breaking it· 100 min
With Podman
2 lessons · ~1 h 30
- 1Construire une image (in French)· 50 min
- 2Images multi-architectures (in French)· 40 min
Beyond the lessons
Assess, practise, pass the proof
Reading a lesson confirms nothing. A skill is confirmed by a passed quiz, practised in a guided lab, and put to the test by a challenge or a mission; an imported lab result is not verified by the site.
Assess yourself
10 quizzes
At the end of the lessons: passed at 70%, they confirm the skill.
Practice
9 guided labs
- Reuse dependencies when the build step runs again
- What comes from the base cannot be removed
- A file that exists, and cannot be found
- 'Up' says nothing about the service
- Changing base is not changing a line
- USER changes the identity, and no right
- What a layer keeps
- The same Dockerfile, and a cache that finally serves
- Write the tests that turn a broken image away
Proof
2 practical proofs
- Fetch a private dependency without shipping the build secret
- Publish two architectures and execute both
A practical proof is a challenge, a capstone or a declared lab.
Used by the mission “Build a reliable pipeline”, which has its proof.
Placement test
Preparing the questions…
Your answers in detail
For each question asked: your answer, the correct answer, its explanation and the page to reread.
Around it
Who requires it, who teaches it
Required by
- Cloud Engineer
- DevSecOps Engineer
- CI/CD Engineer
- SC109 Containers with Docker (Linux Foundation SkillCred)
In red: the certification it prepares for.
Taught by
Tool of your choice: Docker or Podman.
Same block · Build and run containers
- Run containers, persist data and connect them
- Operate and troubleshoot Docker containers: lifecycle, logs, inspection and daemon
- Secure the installation and the containers
- Publish an image to a registry: access token, tag and digest
- Describe and harden a multi-service application with Docker Compose: variables, networks, data, secrets, health, resources and variants
- Operate and restore a Docker Compose stack: logs, saturation, backup, update and rollback