Docker, in the order that makes it stick
You have run `docker run` and it worked, and you are not confident you could explain why.
The usual Docker curriculum teaches features in the order the documentation lists them. This orders them by dependency instead — each step exists because the previous one raises a question it answers.
- Why containers are not lightweight VMs
Start here because the shared kernel explains almost every other Docker behaviour. Learn this last and everything before it was memorised.
- Image vs container
The writable layer is the second load-bearing idea. It has to come before anything about persistence, or “use a volume” is a rule instead of a consequence.
- EXPOSE vs published ports
The first thing that actually goes wrong for most people, and it needs the container's network namespace — which you now have.
- ENTRYPOINT vs CMD
Introduces PID 1 and signal handling, which is where Docker stops being about packaging and starts being about process lifecycle.
- Analyse a real Dockerfile
Paste one you have written. The findings will name things from the previous four steps, which is the point at which they stop being trivia.
- Docker interview chain
Ends here because it tests exactly this sequence, and the last question in it is the one you can only answer if the earlier steps landed.