X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7305149050a24e7429ff679579cd4182188a7116..886d7eef0316bfb5bb230db66ec90123a28315f6:/docker/arvdock diff --git a/docker/arvdock b/docker/arvdock index 0122fc3552..e36e5cfd59 100755 --- a/docker/arvdock +++ b/docker/arvdock @@ -83,11 +83,11 @@ function start_container { #echo " $DOCKER run --dns=127.0.0.1 $args $image" echo " $DOCKER run $args $image" container=`$DOCKER run $args $image` - if [[ "$?" != "0" ]]; then + if [ "$?" != "0" -o "$container" = "" ]; then echo "Unable to start container" exit 1 fi - if [[ "$name" == "compute" || "$ENABLE_SSH" != "false" ]]; + if [ "$name" == "compute" -o "$ENABLE_SSH" != "false" ]; then ip=$(ip_address $container ) echo @@ -95,6 +95,8 @@ function start_container { echo echo " ssh root@$ip" echo + else + echo "Started container: $container" fi if [[ "$name" == "doc_server" ]]; then