Created
May 31, 2016 18:02
-
-
Save davidh-raybeam/77ff644ddbc43ce0343347e4f8c0d046 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# USAGE ./check-container.sh $CONATINER_ID | |
[[ "$(docker inspect --format='{{ .State.Running }}' --type=container $1)" == "true" ]] && exit 0 || exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment