Containers and Docker
A container looks like a small virtual machine but is not one: it is a plain process on the host wearing isolation. Namespaces hide its network, files and processes; cgroups cap its resources; the image is a stack of filesystem layers. Docker is convenient tooling over those kernel mechanisms — the mechanisms stay the same.
What a container really is
Namespaces give each container its own view: its own network, its own filesystem tree, its own process table. Control groups limit CPU and memory. An image is layers of files plus a startup command. Container = process + isolation + limits, nothing more mystical.
Images and Dockerfiles
A Dockerfile is a recipe where each instruction adds a layer; registries store tagged images; small images build faster, start faster and carry less to patch. Understanding layers explains most build-cache surprises.
How to actually understand isolation
Reading helps; building helps more. In the course you assemble a container from raw kernel pieces with your own hands — after that, docker run stops being magic and becomes a shortcut you could write yourself.
What this block covers
- Namespaces and cgroups
- Image layers and building from a Dockerfile
- Networks and volumes
- What runs containers on a node after docker run
Practice it in the trainer
Professions and courses are structured differently because they teach different things. They share one principle: every concept must be tried, not just read about. In the DevOps engineer profession, practice takes place in a terminal on real machines; in the business courses, it uses diagrams, trainers, spreadsheet templates and simulators of company departments where an AI acts as the facilitator.
Frequently asked questions
How is a container different from a virtual machine?
A VM emulates hardware and carries its own kernel; a container is a host process with isolation — lighter and faster.
Should I learn Docker before Kubernetes?
Yes. Kubernetes runs containers; without understanding images and isolation it stays magic.