Watch
1
0
Fork
You've already forked scripts
0
scripts/sysadmin/check_docker_service.sh

11 lines
153 B
Shell
Executable file

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