From ed120b6383ff543acba2ac085ff4eca1fed20cc6 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 15 Oct 2020 11:36:25 +0200 Subject: [PATCH] Fix wasmd start script --- scripts/wasmd/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/wasmd/start.sh b/scripts/wasmd/start.sh index a5cbe716..816b1ea6 100755 --- a/scripts/wasmd/start.sh +++ b/scripts/wasmd/start.sh @@ -37,7 +37,7 @@ echo "wasmd running and logging into $WASMD_LOGFILE" # sleep 3 && cat "$WASMD_LOGFILE" # Use a large timeout because of potentially long image download in `docker run` -if ! timeout 180 bash -c "until docker inspect -f '{{.State.Running}}' '$CONTAINER_NAME' &> /dev/null; do sleep 0.5; done"; then +if ! timeout 180 bash -c "until [ \"\$( docker container inspect -f '{{.State.Status}}' \"$CONTAINER_NAME\" 2> /dev/null )\" = \"running\" ]; do sleep 0.5; done"; then echo "Container named '$CONTAINER_NAME' not running. We cannot continue." \ "This can happen when 'docker run' needs too long to download and start." \ "It might be worth retrying this step once the image is in the local docker cache."