Skip to content

Chapter 3 of 10

Docker Architecture

Follow requests across the client, daemon, registry, images, containers, networks, and volumes.

36 minutes 10 quick checksBy Subha Prasad
Lesson 3 of 10Course navigation

Lesson content

Read, practise, then check your understanding

Docker Architecture

Docker uses a client-server design. The docker CLI sends API requests to the selected daemon. The daemon coordinates image builds and pulls, container lifecycle, networks, volumes, and the lower-level runtime that launches isolated processes.

Core ideas

  • The client can talk to a local or remote daemon through a Docker context.
  • A registry stores repositories of image manifests and layer blobs.
  • An image reference can use a mutable tag or an immutable digest.
  • A container combines image layers, a writable layer, process configuration, mounts, and network endpoints.

How it works

For docker run, the daemon resolves the image, pulls missing content from the registry, creates writable state and networking, applies limits, and starts the configured entrypoint. The client can attach to streams or return immediately in detached mode. Container state remains owned by the daemon endpoint, not the CLI machine.

Command or configuration example

# The context decides which daemon receives these requests
docker context show
docker image pull alpine:3.20
docker container create --name architecture-demo alpine:3.20 sleep 60
docker container start architecture-demo
docker container inspect architecture-demo
docker container rm -f architecture-demo

Run examples first in a disposable environment. Replace image names, versions, credentials, ports, paths, and resource values with reviewed settings appropriate to your system.

Production guidance

  • Use fully qualified image names for production registry clarity.
  • Understand that deleting a container does not automatically delete its image or named volumes.
  • Restrict access to the daemon: control of its API commonly permits control of the host.

The chapter quiz follows this lesson and checks the concepts as well as the operational tradeoffs.

Knowledge check

Answer every question correctly to complete this chapter.

Which statement correctly describes Docker client?
Which term matches this explanation: The command-line or API consumer that sends requests to a daemon.
Which statement correctly describes Docker daemon?
Which term matches this explanation: The service that builds images and manages containers, networks, and volumes.
Which statement correctly describes registry?
Which term matches this explanation: A service that stores and distributes named container images.
Which statement correctly describes image?
Which term matches this explanation: A read-only layered template with runtime configuration.
Which statement correctly describes container?
Which term matches this explanation: A runnable image instance with a writable layer and isolated process.

0 of 10 checks passed

Your progress is saved on this device.