← logbuild #22 passed715d5eb
Dockhand: One UI to Manage Docker Across Every Host
Install Dockhand on your own machine and connect remote Docker hosts over TLS with the Hawser agent. Then turn on image scanning and update checks, so one tool manages every machine in your lab.
· 13 min read
A lab with five Docker machines soon means five terminals, and you run docker ps in each one. You no longer remember what runs where. Dockhand fixes that with one UI. You install it once and connect it to every host. Then you see every container, image, network, and volume on one screen.
This post shows the setup I run in my own lab. Dockhand runs on my Mac. It talks to a Harbor registry VM over TLS through the Hawser agent.
In Simple Words#
- The problem
- You run Docker on many machines. To see what runs where, you must open a terminal on each machine and run
docker ps. - The root cause
- Each Docker host only knows its own containers. You reach them through a socket, a local file on that machine. Nothing collects all hosts in one place.
- The solution
- Install Dockhand on one machine. On each remote host, run the Hawser agent. It shares the Docker socket over TLS and asks for a secret token. Then turn on image scanning, update checks and disk alerts.
- Think of it like this
- Each machine is a room with its own door. You walk to every room to look inside. Dockhand is one desk with a window into every room. A helper stands in each far room and answers only you, because you two share a secret word.
What We’ll Cover#
- What Dockhand is, and the features that make me keep it in my lab
- Installing Dockhand locally and connecting the local Docker socket
- Adding a remote VM as a second environment through the Hawser agent
- Creating TLS certificates and setting up the agent
- Turning on image scanning (Grype + Trivy), update checks and disk alerts
Environment: Dockhand on macOS, which talks to a remote Debian VM that runs Docker. The Docker socket path is /var/run/docker.sock. The Hawser agent listens on :2376 over HTTPS.
What is Dockhand?#
Dockhand is a web UI that you host yourself to manage Docker hosts. It is the same kind of tool as Portainer or Komodo. You run it as a container, and it gives you one screen for every host you connect. There are two ways to connect a host:
| Connection | When to use | What it needs |
|---|---|---|
| Unix socket | The host running Dockhand itself | /var/run/docker.sock mounted in |
| Hawser agent (Standard) | Remote LAN hosts with stable IPs | An agent process on the remote host, port 2376, TLS |
| Hawser agent (Edge) | Hosts behind NAT or roaming | Reverse-tunnel to Dockhand (not covered here) |
Why Dockhand#
I stayed with it after the first install for one reason. The features that you usually add later are already included:
| Feature | What it actually does | Why it matters |
|---|---|---|
| Built-in CVE scanning | Grype and Trivy run on a schedule against every image | You see the vulnerabilities of each container, with severity. You do not need to build a separate scanning pipeline. |
| Update checks per host | Asks registries for newer tags and shows them in the UI | You learn Caddy 2.8 is out, but nothing is pulled on its own and production does not break. You stay in control and apply updates when you choose. |
| Real-time metrics inline | CPU, Memory, Net I/O, Disk I/O on the container row itself | You see the health of every container on every host in one look. No extra clicks, no docker stats. |
| Disk-space notifications | Threshold triggers (e.g. 80%) sent through SMTP or webhook | A full disk is the most common cause of “everything stopped working” in a homelab. You get a Telegram message at 80%, not a surprise at 100%. |
| Hawser agent with TLS + token | Encrypted transport plus shared-secret authentication | If something goes wrong, the damage is much smaller than with dockerd open on a raw TCP socket. |
| Prune tools per host | One-click cleanup for stopped containers, dangling images, unused volumes and networks | Frees disk space. You do not have to remember five separate docker system prune commands. |
| Stacks (compose) editor | Deploy and edit docker-compose stacks from the UI |
Works the same for local and remote environments. The workflow does not change if the host is on your desk or in a datacenter. |
| Layers and log viewer | Image layer breakdown and live container logs in the browser | You find the cause of a problem fast, without SSH into the host. |
| Multi-environment dashboard | Every connected host on a single screen | One screen covers local Docker, LAN VMs, and cloud hosts. |
Without Dockhand, I would build each row myself with a separate cron job, exporter, or alert bot. Here they are in the same UI as the container list. That makes the install worth it.
A typical lab is built like this:
- Each machine runs its own Docker. To see the containers, you open a terminal on every machine and run
docker ps. - Install Dockhand on your Mac. It reads the local Docker socket and shows the local containers.
- On the remote VM, install the Hawser agent. It reads the Docker socket there and listens on port
2376with a TLS certificate. - In Dockhand, add the VM as an environment. Dockhand calls the agent over HTTPS and sends the shared token.
- The remote containers show up next to the local ones. You see every container on one screen.
The local environment uses the Docker socket directly. Every remote environment talks to a Hawser agent. This is a small daemon (a background program) that you run on the remote host. It opens the Docker socket on a port that needs a login and uses TLS encryption.
1. Install Dockhand Locally#
Follow the official quick-start at dockhand.pro. It comes as a single container.
I run it on my Mac and change the host port, so it does not conflict with other things on 3000 or 8080:
docker run -d \
--name dockhand \
-p 3111:3000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v dockhand-data:/data \
--restart unless-stopped \
dockhand/dockhand:latestThen open http://localhost:3111 and create the admin account.
2. Add the Local Environment#
In Dockhand, the word Environment means “a machine that runs Docker”. The first one is almost always the host where you installed Dockhand.

Fill in:
- Name — a name that you will know later (
local-mac,homelab-prod) - Connection type — Unix socket
- Socket path —
/var/run/docker.sock - Public IP — leave empty; Dockhand reaches Docker through the mounted socket, not the network
Save. Dockhand then loads every container, image, network and volume into the dashboard.

Each row shows State, Health, Uptime, CPU, Memory, Net I/O, Disk I/O, IP and Ports. You never have to run docker stats. Click the View Detail icon to open a single container: Overview, Logs, Layers, Network, Mounts.

The local environment is done. The remote one is the more interesting part.
3. Add a Remote Host Through the Hawser Agent#
The Hawser agent is the part that connects a remote machine to Dockhand. It runs on the remote machine and talks to the Docker socket there. It offers an HTTP API, protected by TLS, that Dockhand calls.
The flow you are about to set up:
- Each machine runs its own Docker. To see the containers, you open a terminal on every machine and run
docker ps. - Install Dockhand on your Mac. It reads the local Docker socket and shows the local containers.
- On the remote VM, install the Hawser agent. It reads the Docker socket there and listens on port
2376with a TLS certificate. - In Dockhand, add the VM as an environment. Dockhand calls the agent over HTTPS and sends the shared token.
- The remote containers show up next to the local ones. You see every container on one screen.
Four steps:
- Create a self-signed certificate and key on the agent machine
- Install and set up the Hawser agent
- Open port
2376 - Tell Dockhand to trust that certificate
3a. Generate the certificate on the agent machine#
SSH into the remote host. A self-signed certificate is one that signs itself, with no CA behind it. Create the certificate directory and a 4096-bit self-signed certificate that is valid for a year:
sudo mkdir -p /etc/hawser/certs
cd /etc/hawser/certs
sudo openssl req -x509 -nodes -days 365 \
-newkey rsa:4096 \
-keyout key.pem \
-out cert.pemOpenSSL asks you for Country, State, Organization, Common Name and so on.
You can also give all values with -subj and skip the prompts:
sudo openssl req -x509 -nodes -days 365 \
-newkey rsa:4096 \
-keyout key.pem -out cert.pem \
-subj "/C=VN/ST=HCM/O=Homelab/CN=harbor.lan"3b. Install and configure the agent#
Install Hawser with the docs at github.com/Finsys/hawser. It is usually a single binary or a small container. Then save this config:
# Hawser Configuration
# See https://github.com/Finsys/hawser for documentation
# Docker socket path
DOCKER_SOCKET=/var/run/docker.sock
#################### Standard Mode (comment out for Edge mode) ####################
PORT=2376
# TLS configuration (optional, Standard mode only)
TLS_CERT=/etc/hawser/certs/cert.pem
TLS_KEY=/etc/hawser/certs/key.pem
# Token authentication (optional)
TOKEN=NSFXXwPo=A few notes on the fields:
PORT=2376— “Docker API over TLS” normally uses this port. Open it on the host firewall, but only to your Dockhand server’s IP, not to everyone.TOKEN— a shared secret. Create a random value (openssl rand -base64 24) and keep it private. Dockhand sends it with every request. Without it, any client that trusts the certificate could control your Docker daemon.
Restart Hawser so it loads the new config. Then check that it listens:
sudo systemctl restart hawser
ss -ltnp | grep 23763c. Add the environment in the Dockhand UI#
Back on your Mac, in Dockhand, create a second environment:

| Field | Value |
|---|---|
| Name | harbor.lan |
| Connection type | Hawser agent (Standard) |
| Agent host | static IP or local DNS name (e.g. harbor.lan) |
| Agent port | 2376 |
| Protocol | HTTPS (TLS) |
| CA Certificate | paste the contents of cert.pem from the agent machine |
| Token | the same TOKEN value from the agent config |
Save. If the certificate subject is filled in and the token matches, the new environment turns green:

The remote containers now show up next to the local ones, with the same live stats:

4. Turn on Update Checks#
Dockhand can check every running container against its registry. It tells you which images have a newer tag. Edit the environment and open the Updates tab:

Turn it on. Do not let it update containers on its own.
5. Image Scanning and Notifications#
Dockhand comes with two vulnerability scanners: Grype and Trivy. Turn them on in the environment’s Security tab. Every image is then scanned for known CVEs (publicly listed security holes) on a schedule.

In the same panel you can set disk-space thresholds, for example “tell me when this host reaches 80%”. The notification goes out through SMTP or a webhook. I send mine to a Telegram bot through a webhook. It is the same one I use for Proxmox alerts.
What You Have Now#
| Piece | Where it runs | What it does |
|---|---|---|
| Dockhand UI | Your Mac, port 3111 |
Single dashboard for every host |
| Local environment | Same Mac | Manages local Docker via Unix socket |
| Hawser agent | Each remote Docker host | Exposes Docker socket over TLS + token |
| Remote environment | Configured in Dockhand UI | Pulls live container data from the agent |
| Grype + Trivy | Scheduled inside Dockhand | CVE scans per image |
| Update checks | Per environment | Shows newer image tags (manual apply) |
| Disk + health alerts | SMTP or webhook | Notifies before something fills up |
One UI, one login, and every container in your lab on one screen.
Next Steps#
- Add every other Docker host in your lab as its own environment. Use the same Hawser agent steps.
- Limit the firewall rule for port
2376to your Dockhand host’s IP only. - Change the Hawser
TOKENfrom time to time. Treat it like an API key. - If you want hosts outside your LAN, set up a second agent in Edge mode and let it connect back to Dockhand.
- If you have not done it yet, harden (secure) the agent machine itself first. See Linux Server Security Baseline and Fail2ban on Debian 13.