Checks whether a docker container is running (and healthy).
This check is only available if MinMon is built with the docker
feature.
If MinMon is running inside a docker container, the docker socket has to be mounted for this check to work.
This can be done by adding the argument -v /var/run/docker.sock:/var/run/docker.sock
to the docker run command.
name | example | optional | default |
---|---|---|---|
socket_path | /srv/docker.sock |
✔ | /var/run/docker.sock |
containers | ["foo", "bar"] |
❌ |
Path to the docker daemon's UNIX socket.
List of container names to be checked.
None.
Container names.
state
:true
if container is running (and healthy) elsefalse
.