Sponsor
Your Product
List your product
Interactive explainer

How does Docker work?

Docker packages an app with its dependencies and runs it in a lightweight, isolated process instead of spinning up a whole virtual machine.

Explore the flow
Package → runLive
Your applayer
Dependencieslayer
Base imagelayer

Running container

isolated process

VM

App + libraries
Guest OS
Hypervisor + virtual hardware

Docker container

App + libraries
Container isolation
Shared host kernel

Step by step

From command to container

1 / 5
docker-story.sh

$ docker run -p 8080:80 nginx

You run a command

The Docker CLI sends your request to the Docker Engine. This is just the start of the story, not the app itself.

Docker CLIDocker EngineImage layersContainerHost OS kernel

The pieces

What makes Docker tick?

Click the parts of the system to learn what each one is responsible for.

The running process

Container

A container is a sandboxed process created from an image, with a small writable layer on top.

networking volumes

Mental model

One tiny command

docker run -p 8080:80 nginx

Quick check

What does a container share with the host?

Takeaway: Docker bundles an app and its dependencies into an image, then launches it as a lightweight, isolated process that shares the host kernel.