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://[email protected] 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://[email protected] docker psWays to reach a remote daemon
ssh://[email protected] over SSH (recommended)tcp://10.0.0.20:2376 over TLS with client certificatestcp://10.0.0.20:2375 unencrypted: never expose this