What fails on Docker hosts that nobody notices?
- •A container with restart: always crashing every 30 seconds; docker ps says "Up 12 seconds" forever
- •JSON log files under /var/lib/docker/containers growing to tens of gigabytes because no max-size was set
- •Dangling images, stopped containers and build cache eating the root volume after months of deploys
- •A MySQL, Postgres, Redis or Mongo container started with -p 3306:3306 and no firewall, reachable from the internet
- •A container quietly OOM-killed and restarted, losing in-memory state each time
- •Memory and CPU limits absent, so one container can starve the host
What does Opservo collect from Docker?
From the Docker socket, read-only: every container with its image, state, restart count, published ports and resource usage, and container logs, which are clustered into patterns and summarized rather than stored raw. Databases running as containers are inspected with docker exec status commands, so MySQL, Redis and PostgreSQL in containers get the same insights as on the host. Volume-level disk growth is forecast by the Watchdog.
What should alert?
- •A container that has restarted more than three times, which means it crashes shortly after starting
- •A database container port published on 0.0.0.0 with no firewall rule, as a security critical
- •Disk growth projected to fill the volume, with the prune and log-cap fix
- •A recurring error pattern in a container’s logs that was not there yesterday
What are the fixes?
# why is it restarting
docker logs --tail 100 <name>
docker inspect <name> --format "{{.State.ExitCode}} {{.State.OOMKilled}}"
# reclaim space
docker system prune -af
# cap logs for every new container: /etc/docker/daemon.json
{ "log-opts": { "max-size": "50m", "max-file": "3" } }
# publish a database only on localhost
-p 127.0.0.1:3306:3306Each of these is attached to the matching Opservo finding and can be run from the dashboard on servers with remote actions enabled. A crashed container restart is a good first autonomous policy.
Last updated 2026-09-23.