Docker
Every container on a monitored server shows up on its own, with its state, restarts and memory. No sidecar, no per-container setup.
1Install the server agent
Docker monitoring rides on the server agent. If Docker is installed on the server, the agent finds every container on its own. There's nothing else to install and nothing to register.
New containers show up on the agent's next report: within a minute on Team, 5 minutes on Pro and 10 on Hobby.
2Check the agent can reach Docker
The agent reads the Docker socket at /var/run/docker.sock. The installer runs it as root, so this works out of the box. If you've changed how the agent runs, it needs root or membership of the docker group.
What it collects
Each container reports with every agent report:
- State: running, exited, dead, paused or restarting
- Health check status, if the image defines one
- Restarts: the count and the last reason, including
OOMKilledwhen a container hit its memory limit - CPU and memory, with memory against the container's limit
When it alerts
Two problems are watched separately, because they mean different things:
| Alert | When it fires | What it means |
|---|---|---|
| Container down | A container is dead or paused, or exits with a non-zero code | That container crashed or stopped |
| Docker down | A server that reported containers sends none for 10 minutes | The Docker engine on that host stopped, or the agent lost the socket |
Each crashed container gets its own incident, so three crashes on one host are three incidents, and you can tell an isolated failure from a host-wide one at a glance. A container that exits with code 0 is a clean shutdown and doesn't alert.
Incidents close themselves when the container is running again.
When the agent itself goes quiet, its containers aren't reported as crashed. Watchdock knows the silence is the agent, not your containers, and raises it as a server problem instead.
Troubleshooting
No containers appear
The agent can't reach /var/run/docker.sock. Run it as root or add its user to the docker group, then restart it with sudo systemctl restart watchdock-agent.
A container keeps flipping between running and exited
That's a real crash loop. Watchdock shows what Docker reports, so check the container's own logs and its restart policy.
Docker down fired but Docker is running
The alert means no container data arrived, which also happens when the agent itself is stuck. Check journalctl -u watchdock-agent.