Skip to content

Docker architecture: CLI, daemon, API and registries

Select an icon to see what it is.

Step 6 of 6

Docker Desktop bundles it all

Docker Desktop is an app for developer machines. It bundles the engine, the CLI, Compose, Build and a graphical interface, and on macOS and Windows the engine runs inside a small Linux VM. Your docker command talks to dockerd in that VM, through a socket that Desktop forwards.

PrevNext

Docker Desktop on macOS or Windows

docker CLI runs on your computer
dockerd and containerd run inside a Linux VM
the socket is forwarded, so the commands look the same

Try it yourself

Call the API by hand and see which daemon the CLI is using. You may need sudo for the curl command.

$ docker context ls
$ docker version
$ curl --unix-socket /var/run/docker.sock http://localhost/v1.45/containers/json
$ docker pull nginx
$ docker image inspect nginx --format '{{.RepoTags}}'

Quiz

1. What does the docker command do?
2. What is the safe way to use a remote daemon?
3. What does the image name nginx mean in full?