beginnerDocker Architecture, Engine, Daemon, Client & Registry
How does the Docker CLI communicate with the daemon?
By default over a Unix domain socket at /var/run/docker.sock, using a versioned REST API (e.g., /v1.46/containers/json). It can also be configured to use a TCP socket (optionally with TLS) or SSH for remote daemons, controlled via the DOCKER_HOST environment variable or `docker context`.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response