Check that container is running before starting rest server
This commit is contained in:
parent
de52df68d4
commit
ff56eef454
@ -29,6 +29,13 @@ echo "wasmd running and logging into $WASMD_LOGFILE"
|
||||
|
||||
sleep 10
|
||||
|
||||
if [ "$(docker inspect -f '{{.State.Running}}' "$CONTAINER_NAME")" != "true" ]; 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."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker exec "$CONTAINER_NAME" \
|
||||
wasmcli rest-server \
|
||||
--node tcp://localhost:26657 \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user