diff --git a/sysadmin/check_docker_service.sh b/sysadmin/check_docker_service.sh new file mode 100755 index 0000000..4ace7cf --- /dev/null +++ b/sysadmin/check_docker_service.sh @@ -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 $?