12 questions to validate the fundamentals with Idir: what Docker is for, installing and running hello-world, telling the 5 actors apart, and playing the full lifecycle.
Answer everything, then click Check: your score and explanations will appear.
0.1 · Recall
1. What is Docker's real strength compared with a classic installation?
The image packs the code AND its dependencies: the same package runs identically on every machine.
0.1 · Application
2. Idir's site works on his laptop but breaks on the test server (different Node and Redis). What should he do?
Same versioned image on laptop, test and production: same behavior everywhere, one role per container.
0.1 · Arbitration
3. A colleague says: "Docker replaces VMs and monitors everything, let's put it all in one container". Idir's verdict?
Container ≠ VM (shared kernel), one container = one role, and Docker packs/runs without monitoring or backing up.
0.2 · Recall
4. Idir is on Windows and wants to install Docker. What does he pick and check?
Desktop on Windows/macOS (WSL 2 + virtualization), Engine on Linux — always the official packages, a single engine.
0.2 · Application
5. Idir types docker run hello-world and reads the message. What did he just prove?
The ritual crosses the whole chain: image download, container creation and execution.
0.2 · Application
6. After hello-world, Idir wants to read what just happened. Which commands?
images shows the downloaded image, ps -a the finished container: the pull → run → ps trio.
0.3 · Recall
7. Which picture best describes the image / container pair?
The image never changes; each container adds its ephemeral writable layer on top.
0.3 · Application
8. Idir launches web1 and web2 from nginx:1.27, then removes web2. What does he see with ps and images?
One image → N independent containers: rm targets the part, not the mold.
0.3 · Arbitration
9. Idir hesitates between nginx:latest and nginx:1.27 to freeze his tests. What does he decide?
The tag freezes the version (1.27, 16); latest follows the latest publication and breaks reproducibility.
0.4 · Application
10. Idir tests a disposable image and wants no exited ghosts. Which option does he add to run?
--rm removes the container as soon as it stops: no exited containers to purge.
0.4 · Application
11. The demo container runs but stays silent. In which order does Idir diagnose?
Logs to see, exec to enter: most diagnoses stop at the logs.
0.4 · Arbitration
12. Demo must stop and disappear cleanly, check included. Which sequence does Idir validate?
Polite stop (SIGTERM then SIGKILL), husk removal with rm, ps -a as proof — never close the terminal.
What's next?
Score ≥ 80%: move to Level 1 — images, tags and Docker Hub with Idir.
Score between 50% and 80%: revisit the failed section(s) (0.1 usage, 0.2 installation, 0.3 architecture, 0.4 lifecycle), reread the explanations above, then retake the test.
Score < 50%: reread all of level 0 while applying each 48h challenge (Docker/VM card, hello-world ritual, nginx trio, demo cycle) before retrying.
And after? Keep Idir's lifecycle memo and installation checklist: level 1 replays them on real images.