🎓 A1Learner
🔍
0 of 50 lessons completed

Docker Architecture

Docker has four parts: the client, the daemon, images, and a registry. One command travels from the client to the daemon, which does the work.

The client sends an order

This command asks the daemon to list images.

docker images

The daemon answers

The daemon replies with the images it holds.

docker images --format "{{.Repository}}:{{.Tag}}"

Example

docker version --format "Client: {{.Client.Version}} Server: {{.Server.Version}}"

Key points

  • Client: the docker command typed in the terminal.
  • Daemon: the background service that builds, runs and manages containers.
  • Image: the read-only package that a container runs from.
  • Registry: the store where images are kept, like Docker Hub.
  • The client talks to the daemon, and the daemon talks to images and registries.
  • Use docker version to see the client and the daemon side by side.

In this example, one command shows both halves of Docker. The client reports version 29.1.3, and the server, the daemon, reports the same version. The two numbers match because both parts come from the same Docker install.

Note

The daemon does the work. The client only sends orders.

Try it Yourself

Edit the code, then press Run.

Running is simulated · Rust Playground

Exercise

Which part of Docker builds and runs containers?