Docker Compose guide
Use the Agent Guide compose template with data mounts, local port binding, and backup notes.
Container-first operation
Use Docker when you want a clearer data volume, repeatable updates, and a stronger operational boundary than a local host install. Keep one data directory per profile or deployment.
Agent Guide is an independent editorial resource. It is not affiliated with, endorsed by, or sponsored by Nous Research, Hermes Agent, or Hermes/Hermes brand owners. Product names and marks belong to their respective owners.
The official Docker guide uses a mounted data directory so config, API keys, sessions, skills, and memories survive image updates.
mkdir -p ~/.hermes
docker run -it --rm \
-v ~/.hermes:/opt/data \
nousresearch/hermes-agent
.env ownership and backup rules explicit.| Concern | Default stance |
|---|---|
| Ports | Expose only the gateway/API ports you actually need. |
| Backups | Back up /opt/data or the host-mounted data directory before upgrades. |
| Secrets | Prefer environment or secrets-manager injection over loose files. |
| Profiles | Use separate containers and volumes for work/personal identities. |
There are two Docker decisions. You can run Hermes Agent itself inside Docker, or you can configure Docker as the terminal backend while Hermes runs on the host. The official Docker page focuses on running Hermes inside a container and stores user data through a host mount at /opt/data.
Agent Guide treats both paths as security decisions. A container boundary helps, but mounted files, exposed ports, forwarded environment variables, and API keys still define the real blast radius.
Use Docker Compose when you want a repeatable service definition, checked-in infrastructure notes, and a cleaner upgrade path than remembering a long docker run command.
Use the Agent Guide compose template with data mounts, local port binding, and backup notes.
| Source | Used for | Last checked | Confidence |
|---|---|---|---|
| Hermes Agent Docker guide | Docker run modes, mounted data directory, gateway operation, ports, and production cautions. | 2026-06-02 | high |
| Hermes Agent configuration guide | Provider, model, backend, and environment configuration patterns. | 2026-06-02 | high |
| Hermes Agent security guide | Approval modes, gateway authorization, Docker terminal backend hardening, and credential cautions. | 2026-06-02 | high |
Known caveats: Docker can mean running Hermes inside a container or using Docker as the terminal backend. Confirm which model you are configuring before copying commands.
No. Docker improves the boundary, but mounted volumes, forwarded environment variables, exposed ports, and gateway tokens still need review.
Operator checklist
Receive the smoke-test order for install path, sandbox boundary, provider setup, source review, and production checks.