feat: Docker container checks #105

Merged
Sebi merged 1 commits from feat/docker-check into main 2026-11-22 17:54:08 +00:00
Owner

Stacked on #104.

  • Target: container name or ID. Config host: unix:///var/run/docker.sock (default) or tcp://host:2375.
  • Up while running and not unhealthy (starting counts as up; confirmations cover flapping). Exited (with exit code), paused, restarting and missing containers fail with that reason.
  • Unix sockets only on checkers allowed to reach private networks — the socket is the checker's own host. Shared cloud checkers refuse it; installations without Docker can switch the type off (#101). TCP goes through the network guard. TLS client certificates for remote daemons are not supported.
  • README: all check types and notification services listed; how to mount the socket read-only into a checker.

Tests: fake Engine API on a Unix socket and TCP (running, healthy, unhealthy, exited, paused, missing; shared checkers refused); checked once by hand against the local Docker daemon.

Closes #97

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

Stacked on #104. - Target: container name or ID. Config `host`: `unix:///var/run/docker.sock` (default) or `tcp://host:2375`. - Up while `running` and not `unhealthy` (`starting` counts as up; confirmations cover flapping). Exited (with exit code), paused, restarting and missing containers fail with that reason. - **Unix sockets only on checkers allowed to reach private networks** — the socket is the checker's own host. Shared cloud checkers refuse it; installations without Docker can switch the type off (#101). TCP goes through the network guard. TLS client certificates for remote daemons are not supported. - README: all check types and notification services listed; how to mount the socket read-only into a checker. **Tests:** fake Engine API on a Unix socket and TCP (running, healthy, unhealthy, exited, paused, missing; shared checkers refused); checked once by hand against the local Docker daemon. Closes #97 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added this to the M11 Uptime Kuma parity milestone 2026-11-22 16:01:14 +00:00
Sebi changed target branch from feat/game-checks to main 2026-11-22 17:53:41 +00:00
Sebi added 1 commit 2026-11-22 17:53:41 +00:00
feat: Docker container checks
ci / build (pull_request) Successful in 5m21s
ci / image (pull_request) Successful in 6m43s
ci / lint (pull_request) Successful in 10m3s
ci / test (pull_request) Successful in 12m5s
0b7f48a609
A Docker monitor asks the Docker Engine API for a container's state: up
while it runs and its health check, if any, is not unhealthy; exited,
paused or missing containers are reported as such. The API is reached
over the checker host's Unix socket, allowed only on checkers that may
see private networks, or over plain TCP through the network guard. The
README lists all check types and notification services and explains
mounting the socket.

Closes #97

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 60a2021edd into main 2026-11-22 17:54:08 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#105