diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 53cb603..e294182 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -34,7 +34,7 @@ check_services () { check=$(curl -sg --unix-socket /var/run/docker.sock http://$CHK_DOCKER_API_VERSION/tasks?filters={%22service%22:[%22$service%22]} | jq '.[]? | select((.Status.State|index("running")>=0))? | .ID?' | wc -l) state="0" - if [ $check = $expected ]; then + if [ $check -ge $expected ]; then state="1" fi