Container name has stopped (exit code code)
A stopped container is a service that is not running.
docker logs --tail 50 nameReferenceThe 22 checks
Health checkcontainers
Each container's state, restart count and health status, read from the Docker socket.
It needs root for part of what it reads. The Docker socket can be read only by root and the docker group. Without root, that part is skipped and never counted as passed. Run sudo kiyesi scan to include it.
The report lists it as passed, in these words:
Container name has stopped (exit code code)
A stopped container is a service that is not running.
docker logs --tail 50 nameContainer name is failing its health check
Docker reports the container as unhealthy, so it is running but not answering properly.
docker inspect --format '{{json .State.Health.Log}}' nameContainer name restarted count times in the last hour
A container that keeps restarting is crashing, and users see errors each time.
docker logs --tail 100 name