Skip to content

Docker architecture: CLI, daemon, API and registries

Select an icon to see what it is.

Step 3 of 6

The same API works remotely

Because it is an API, the CLI can talk to a daemon on another machine. DOCKER_HOST=ssh://user@10.0.0.20 sends the requests over SSH, which is the safe way. Docker does not recommend remote access without TLS, because anyone who can reach a plain tcp://10.0.0.20:2375 port controls Docker, and the TLS port is 2376.

$ DOCKER_HOST=ssh://user@10.0.0.20 docker ps

Ways to reach a remote daemon

ssh://user@10.0.0.20 over SSH (recommended)
tcp://10.0.0.20:2376 over TLS with client certificates
tcp://10.0.0.20:2375 unencrypted: never expose this