Solved docler-health-check.sh bug

This commit is contained in:
Kevin Veen-Birkenbach 2023-03-28 11:46:05 +02:00
parent 7d16779f32
commit 07053bfd38

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
docker_ps_grep_unhealthy="$(docker ps --filter health=unhealthy)" docker_ps_grep_unhealthy="$(docker ps --filter health=unhealthy --format '{{.Names}}')"
docker_ps_grep_exited="$(docker ps --filter status=exited)" docker_ps_grep_exited="$(docker ps --filter status=exited --format '{{.Names}}')"
exitcode=0 exitcode=0
if [ ! -z "$docker_ps_grep_unhealthy" ] if [ ! -z "$docker_ps_grep_unhealthy" ]
then then