Skip to main content

Concepts for Dockers

Docker concepts are the ideas behind containers: a container is an isolated process that shares the host kernel, unlike a virtual machine, which boots its own guest operating system. This first unit of the Docker roadmap covers how containers differ from VMs and how docker run starts one.

Stage: Container Basics · Part of the Docker roadmap · Last reviewed 19 November 2026

What to learn in Concepts

Concepts interview questions

How is a container different from a virtual machine?

A VM runs a full guest operating system on a hypervisor, so each one carries its own kernel. Containers are ordinary processes isolated by Linux namespaces and limited by cgroups, sharing the host kernel. That makes them start in seconds and use far less memory and disk.

What happens when you run docker run nginx for the first time?

The client asks the daemon to start a container. If the nginx image is not stored locally, the daemon pulls it from the registry, creates a writable container layer on top of the image, sets up networking and starts the image's default command as the main process.

Where Concepts fits in the Docker roadmap

Concepts belongs to the Container Basics stage (beginner level), which takes about 12 hours. Run your first container.

Back to the full Docker roadmap