Monitor Docker on a remote server over SSH
Updated 28 November 2026
Run dp on your laptop and point it at the server. The terminal UI draws locally and only Docker data travels over SSH, so moving through lists never waits on the network.
$DOCKER_HOST=ssh://me@server dpThat is all it takes when you can already ssh me@server and your user on the server can reach the Docker socket.
Why not run dp inside an SSH session?
You can: install dp on the server and run it there. But then every keypress makes a round trip over SSH before the screen changes. With DOCKER_HOST=ssh:// the UI runs on your machine, list navigation is instant, and data loads happen in the background. dp also batches event and log redraws when it detects it is running inside SSH, but running it locally is still smoother.
Before you start
- SSH access. Your
~/.ssh/config, agent and known hosts all apply, so a host alias likessh://prodworks. Password and host-key prompts appear before the UI opens. - Socket access on the server. For a normal (rootful) daemon your server user needs access to
/var/run/docker.sock, usually by being in thedockergroup. - Key or agent authentication if you want dp to reconnect by itself after a dropped connection. It never prompts again once the UI is open.
- The
dockerCLI on your laptop for shells (e) and passthrough commands such asdp exec. On macOS,brew install dockeris enough; you don't need Docker Desktop for a remote daemon.
On Windows, set the endpoint in PowerShell with $env:DOCKER_HOST = "ssh://me@server" and then run dp.
Save the server as a Docker context
Typing DOCKER_HOST every time gets old. A Docker context remembers the endpoint for both docker and dp:
$ docker context create home --docker host=ssh://me@server $ docker context use home $ dp
With several servers saved, press c inside dp to switch between them without leaving the UI. That choice lasts for the session and doesn't change the Docker CLI's current context. See Docker contexts.
Rootless Docker or another socket path
Append the absolute socket path to the SSH address:
$ DOCKER_HOST=ssh://me@server/run/user/1000/docker.sock dp
Replace 1000 with the remote user's UID (ssh me@server id -u) and make sure their rootless daemon is running. Rootless Docker doesn't need the docker group. Use the real path: ~ and shell variables are not expanded on the remote side. The same address works in docker context create.
What happens on the wire
dp starts one ssh process that forwards a private local socket to the server's Docker socket, then talks to the Docker Engine API through it. On Windows, where OpenSSH can't take a C:\... socket path, dp forwards a random port on 127.0.0.1 instead; other users signed in to the same Windows machine could reach it while dp runs. Nothing is installed on the server. If the connection drops, dp starts a new tunnel in the background and the UI shows the connection state below the tabs (on the Containers tab, the host panel takes that row while the server is reachable); lists and open details refresh when it comes back, without losing your filters or selection.
What works over SSH
| Feature | Over SSH |
|---|---|
| Containers, images, volumes, networks, details | Yes |
| Live stats, sparklines, Compose rollups | Yes, one stats stream per running container |
| Logs, project logs, regex filter | Yes |
| Events timeline | Yes |
| Start, stop, restart, pause, kill, remove, prune | Yes |
| Shell into a container (e) | Yes, through your local docker CLI |
| Update Compose images (u) | Yes. Compose runs on the server in the project's folder when the files are there (guide) |
| Edit a Compose file (e on a project) | Yes. dp reads and writes the file on the server (guide) |
| Host panel and System screen (I) | Yes. The server's CPU, memory, load and disk, read from its /proc over one more SSH connection (guide) |
Compose updates and edits, and the host's own usage, need a POSIX shell on the server and key or agent authentication without prompts. Compose updates and edits also need Compose v2 there.
When something is slow
Run dp with a debug log and attach it to a bug report:
$ dp --debug-log ~/dp-debug.log
It records each Engine API request with its timing, the SSH tunnel starting and restarting with ssh's error output, and stats streams that retry. It doesn't record container environment, log lines or file contents. Host and container names do appear, so look it over before sharing.
Full reference: Remote daemons over SSH and Debug log.