From c002cac15738c895a44258a40ee1393a09eb555d Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Fri, 27 Jun 2014 21:47:01 -0700 Subject: [PATCH] Add some extra validation and checking to the local cluster setup. --- hack/local-up-cluster.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 9e6fce17aa..f7f4c28dcb 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -23,6 +23,12 @@ if [ "$(which etcd)" == "" ]; then exit 1 fi +docker ps 2> /dev/null 1> /dev/null +if [ "$?" != "0" ]; then + echo "Failed to successfully run 'docker ps', please verify that docker is installed and \$DOCKER_HOST is set correctly." + exit 1 +fi + # Stop right away if the build fails set -e