11 lines
153 B
Bash
Executable file
11 lines
153 B
Bash
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 $?
|