Skip to content
StackDecode
System Design
14. Cloud ArchitectureAnimated

Docker

The most popular container tool.

The idea

Docker builds images from a Dockerfile and runs them as containers.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Host OS kernelContainer runti…Container AContainer BContainer C
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Containers share the host's kernel.

step:
1/4
at:
Host OS kernel
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Write a Dockerfile
  2. 2Build an image
  3. 3Push to a registry
  4. 4Run containers anywhere

Where it is used

Packaging apps.

Watch out for

Large images and running as root.

Related