1
0
Fork 0

Minimal script to allow monit to check Docker containers

This commit is contained in:
Luca Beltrame 2022-05-12 23:05:05 +02:00
parent efce18a953
commit 371c56bfd0
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -0,0 +1,11 @@
#!/bin/bash
set -e
set -o pipefail
set -o nounset
container="$1"
/usr/bin/docker inspect -f '{{.State.Status}}' $container | grep -q running
exit $?