Skip to content

Instantly share code, notes, and snippets.

@davidh-raybeam
Created May 31, 2016 18:02
Show Gist options
  • Save davidh-raybeam/77ff644ddbc43ce0343347e4f8c0d046 to your computer and use it in GitHub Desktop.
Save davidh-raybeam/77ff644ddbc43ce0343347e4f8c0d046 to your computer and use it in GitHub Desktop.
#! /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