Dockhand: self-hosted Docker UI and Portainer alternative
Dockhand manages Docker containers, Compose stacks and Git deployments from a web UI. How to install it, who has to pay for it, and how it compares with Portainer and other Docker UIs.
Dockhand is a self-hosted web interface for Docker. From one page you start and stop containers, read their logs, open a shell inside them, edit and deploy Docker Compose stacks, deploy stacks from Git, scan images for vulnerabilities and manage several Docker hosts. It runs as a single container, uses SQLite by default and needs no extra services.
One thing to know before you install it: Dockhand is free for personal use, but it is not open source, and a business that runs it in production has to buy a licence. The section below explains exactly who pays.
What is Dockhand?
Dockhand sits in the same space as Portainer. According to its documentation and website, it offers:
- Containers. Start, stop, restart and remove containers, create new ones, change CPU, memory and restart policy without a restart, attach networks, use an interactive web terminal and browse files inside a container.
- Compose stacks. A visual Compose editor, a template library, validation with suggested fixes, and a dependency graph. Existing stacks that were started from the command line can be imported.
- Git deployments. Deploy stacks from Git repositories over SSH or HTTPS, with webhooks and scheduled sync.
- Updates and scanning. Checks for newer images, scheduled auto-update, and vulnerability scanning with Grype or Trivy that can block an update.
- Multiple hosts. Local socket, remote TCP with TLS, or the Hawser agent for hosts behind NAT.
- Operations. Live metrics and logs, an activity log, a Prometheus endpoint, notifications and encrypted backups with restic (in beta).
- Sign-in. Local users, OIDC/SSO, TOTP and passkeys.
The project says it sends no telemetry: its licence states that the software does not contact the author’s servers.
Is Dockhand free and open source?
Dockhand is free to use, but it is not open source in the usual sense. The code is on GitHub under the Business Source License 1.1 with the author’s own terms. Each release becomes Apache 2.0 four years after it is published.
Under those terms, as of 23 November 2026:
| Use | Cost |
|---|---|
| Home lab or hobby project, for yourself | Free, also in production |
| Non-profit and charitable organizations, schools, universities and non-commercial research | Free, also in production |
| An individual or sole trader running their own infrastructure that no employee uses | Free, also in production |
| Development, testing, staging, CI/CD, evaluation, demos and training, for anyone | Free |
| Production use by or for a company, public body or any organization with employees | Commercial licence |
| Offering Dockhand itself as a hosted or managed service | Not allowed without a separate agreement |
The commercial editions are priced per host, where a host is one machine running Dockhand: $499 per host per year for SMB and $1,499 for Enterprise, with volume discounts from five hosts. Read the full licence text before you decide, because the exact conditions matter more than this summary.
The editions also differ in features:
- Free: unlimited environments, container and stack management, Git integration, vulnerability scanning, backups, external secrets, local users, OIDC/SSO, MFA and the activity log. Every signed-in user is a full administrator.
- SMB: the free features plus a commercial licence, premium support, priority bug fixes and scheduled environment reports.
- Enterprise: adds role-based access control, environment-scoped permissions, LDAP and Active Directory, and compliance audit logging.
What you need
- Docker Engine 20.10 or later (API 1.41 or later). Podman works too with its socket mapped to the Docker socket path.
- At least 512 MB of RAM, 1 GB recommended.
- SQLite is the default database. PostgreSQL 14 or newer is optional.
- A private network. Dockhand controls your Docker hosts, so it should not face the internet, see the security sections below.
The project says it runs on a Raspberry Pi 4.
Install Dockhand with Docker Compose
Create a folder and a compose.yaml. This is the Compose file from the Dockhand documentation:
services:
dockhand:
image: fnsys/dockhand:latest
container_name: dockhand
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- dockhand_data:/app/data
volumes:
dockhand_data:
Start it and open http://<host>:3000:
docker compose up -d
If your Compose stacks use relative volume paths such as ./config.yml:/config.yml, a named volume will not work, because the Docker daemon on the host has to find those files. Use matching paths instead: the same directory on the host and inside the container, and tell Dockhand about it with DATA_DIR.
mkdir -p /opt/dockhand
services:
dockhand:
image: fnsys/dockhand:latest
container_name: dockhand
restart: unless-stopped
ports:
- "3000:3000"
environment:
DATA_DIR: /opt/dockhand
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/dockhand:/opt/dockhand
PostgreSQL instead of SQLite
SQLite needs no setup and is fine for most installs. The documentation offers PostgreSQL if you want it, with the database URL passed in DATABASE_URL:
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: dockhand
POSTGRES_PASSWORD: change-me
POSTGRES_DB: dockhand
volumes:
- postgres_data:/var/lib/postgresql/data
dockhand:
image: fnsys/dockhand:latest
restart: unless-stopped
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://dockhand:change-me@postgres:5432/dockhand
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- dockhand_data:/app/data
depends_on:
- postgres
volumes:
postgres_data:
dockhand_data:
First-time setup: turn on authentication
On the first start authentication is off. Anyone who can reach the page can then create containers on your host. Open Settings, then Authentication, enable it and create the first administrator before you do anything else. If Dockhand listens beyond localhost with authentication off and a read-write socket, it shows a one-time warning about this.
Local users, OIDC/SSO (any provider) and TOTP multi-factor authentication are included in the free edition. Passkeys are available too, but they need the ORIGIN variable set to the HTTPS address people use, for example https://dockhand.example.com. To hide the password form once SSO works, set DISABLE_LOCAL_LOGIN=true.
Docker socket access and security
Dockhand needs the Docker socket, and access to the socket is as good as root on the host. The documentation is direct about it:
- Do not expose Dockhand to the public internet. Keep it on a LAN, behind a VPN such as Tailscale or WireGuard, or behind an authenticating proxy such as Authelia or oauth2-proxy. Its own login is a convenience, not a defence against the open internet.
- Permission denied on the socket? Run Dockhand with the Docker group of the host. Find the group ID and add it with
group_add:
stat -c '%g' /var/run/docker.sock
group_add:
- "999" # replace with the ID from the command above
- For anything internet-reachable or production, the documentation recommends a Docker socket proxy in front of the socket. It blocks dangerous API calls such as privileged containers, but it is not a complete fix: whoever reaches Dockhand can still start and stop containers and read volume data.
- Docker bypasses UFW and firewalld for published ports. If Dockhand sits behind a reverse proxy on the same host, publish it as
"127.0.0.1:3000:3000".
Behind a reverse proxy set ORIGIN to the public address. Dockhand also protects against cross-site form submissions, and a proxy that rewrites the host name breaks that check unless ORIGIN or TRUSTED_ORIGINS is set.
Manage other servers with the Hawser agent
Hawser is Dockhand’s small open-source agent (MIT) for hosts you want to manage from the same interface. It has two modes:
| Mode | How it connects | Use it for |
|---|---|---|
| Standard | Dockhand connects to the agent on port 2376 | LAN and home lab with fixed addresses |
| Edge | The agent connects out to Dockhand over WebSocket | VPS and hosts behind NAT, no inbound port needed |
Edge mode needs a token generated in Dockhand and a Dockhand that the agent can reach, so use a VPN or an HTTPS address. Run the agent on the remote host:
docker run -d \
--name hawser \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /opt/hawser-stacks:/opt/hawser-stacks \
-e STACKS_DIR=/opt/hawser-stacks \
-e DOCKHAND_SERVER_URL=wss://dockhand.example.com/api/hawser/connect \
-e TOKEN=change-me \
-e AGENT_NAME=my-server \
ghcr.io/finsys/hawser:latest
Then add the host under Settings, then Environments. There is also an install script for Linux that sets up a systemd service.
Containers and Compose stacks
On the Containers page each container has actions, live CPU and memory, streaming logs with time-range filters, a web terminal and a file browser.
Stacks are Compose projects. You can write one in the visual editor, start from a template, or point Dockhand at a Git repository. Click Import on the Stacks page to adopt stacks you started from the command line: Dockhand scans a folder, finds compose files and turns them into managed stacks while leaving the files where they are, so your existing Git and SSH workflow keeps working.
Deploy stacks from Git with webhooks
For a Git stack Dockhand pulls a repository, runs Compose and redeploys when something changes. A webhook triggers the sync on every push. Each Git stack has its own URL of the form https://dockhand.example.com/api/git/stacks/<id>/webhook, and the documentation covers GitHub, GitLab and Gitea or Forgejo. Add the URL under the repository’s webhook settings with a secret, and Dockhand redeploys only when there are new commits.
If you run your own Git server, Forgejo works with this out of the box: use the Gitea webhook type, and signature checking works because it sends the same header as GitHub. Together they give you a small self-hosted push-to-deploy setup.
Update containers automatically and safely
Dockhand checks registries for newer images and can update containers on a schedule: daily, weekly or with a cron expression. Auto-update pulls the new image, stops the old container and creates a new one with the same configuration, so there is a short downtime.
Two settings make this less risky:
- Vulnerability criteria. With scanning on, an update can be blocked when the new image has critical vulnerabilities, critical or high ones, any, or more than the current one. Safe-pull protection pulls the new image under a temporary tag and scans it first. If the image fails the criteria it is deleted and your container keeps running.
- Minimum image age.
MINIMUM_RELEASE_AGE_HOURSholds automatic updates until an image is a given number of hours old, so a bad release has time to be noticed and pulled.
Registries limit pulls, and many installs run schedules on the hour. If updates sometimes fail with toomanyrequests, move the schedule to an odd minute, for example 17 4 * * * instead of 0 4 * * *.
Scan results can be exported as Markdown, CSV, JSON or SARIF for tools such as DefectDojo and Dependency-Track.
Monitoring, notifications and backups
- Prometheus. Set
EXPORT_METRICS=trueand metrics appear at/metrics. With authentication off the endpoint is public, so keep it on a trusted network. For host-level charts and alerts you can also run Beszel, and for an outside check of your services Uptime Kuma. - Notifications. Email, webhooks, Discord, Slack, Telegram, ntfy, Gotify, Pushover, Signal and others for updates, crashes, scans and backups.
- Backups. Dockhand can back up volumes, bind mounts and stack files with restic to local disk, S3, Backblaze, Azure, Google Cloud or a REST server. This feature is marked beta.
Back up the Dockhand data directory (/app/data or your DATA_DIR) as well. It holds the database and a hidden .encryption_key file. Without that key the secrets Dockhand stores, such as registry credentials and agent tokens, cannot be read, even if you restore the database.
Updating Dockhand
docker compose pull && docker compose up -d
After an upgrade Dockhand shows a What’s New popup, which DISABLE_WHATS_NEW=true turns off. Because the project is still moving fast, read the release notes on GitHub before major steps.
Dockhand vs Portainer and other Docker UIs
Facts below come from each project’s repository and documentation on 23 November 2026.
| License | What it is | |
|---|---|---|
| Dockhand | BSL 1.1, free for personal use, paid for business production | Docker management UI: containers, stacks, Git deploys, scanning, multi-host |
| Portainer | zlib (Community Edition); Business Edition is paid | Container management for Docker, Swarm, Podman, Kubernetes and ACI |
| Komodo | GPL-3.0 | A tool to build and deploy software on many servers |
| Arcane | BSD-3-Clause | A modern Docker management UI |
| Dockge | MIT | A manager for Compose stacks, focused on compose.yaml files |
| Dozzle | MIT | A real-time log viewer for containers, not a manager |
- Dockhand vs Portainer. Both give you a web interface for containers and stacks. Portainer Community Edition is under the permissive zlib licence, but its README says the edition is meant for home labs, learning and other non-production use, and that production use belongs on the paid Business Edition (with three free nodes through its Take 3 programme). It lists SSO, RBAC and GitOps among Business Edition features. In Dockhand the restriction is in the licence itself: business production use needs a paid licence, while OIDC/SSO, Git deployments and vulnerability scanning are part of the free edition. Portainer also manages Docker Swarm, Kubernetes and ACI, which the Dockhand manual does not cover.
- Choose by licence first. If you need a licence that anyone can use in production without paying, look at Arcane (BSD-3-Clause), Komodo (GPL-3.0) or Dockge (MIT).
- For a home lab, Dockhand is a good fit: free for your own use, light, and it covers updates, Git deploys and scanning in one place. If all you want is to write Compose files, Dockge is smaller. If you only need logs, use Dozzle.
- For a company, weigh the per-host price against the alternatives, and remember that in Dockhand’s free edition every signed-in user is an administrator. Roles need the Enterprise edition.
FAQ
Is Dockhand free?
Yes for personal use, non-profits, schools and sole operators, and free for everyone in development, testing and CI. A company running it in production needs a commercial licence, see the table above.
Is Dockhand open source?
No. It is source-available under the Business Source License 1.1 with the author’s additional terms. Every version converts to Apache 2.0 four years after its release.
Is Dockhand a replacement for Portainer?
For Docker and Compose management, largely yes. Check that you do not rely on something it does not list, such as Kubernetes.
Does Dockhand send data to the developer?
The licence says the software contains no telemetry and does not contact the author’s servers. It does contact container registries for update checks and your own notification endpoints.
Can I expose Dockhand to the internet?
The documentation says not to. Use a VPN or an authenticating proxy in front of it.
Does Dockhand work with Podman?
Yes. Map the Podman socket to /var/run/docker.sock inside the container. On SELinux systems add the :Z suffix to the volume.