mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 02:45:02 +01:00
Solved docler-health-check.sh bug
This commit is contained in:
parent
8dfed43f85
commit
d159457e65
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
docker_ps_grep_unhealthy="$(docker ps --filter health=unhealthy)"
|
||||
docker_ps_grep_exited="$(docker ps --filter status=exited)"
|
||||
docker_ps_grep_unhealthy="$(docker ps --filter health=unhealthy --format '{{.Names}}')"
|
||||
docker_ps_grep_exited="$(docker ps --filter status=exited --format '{{.Names}}')"
|
||||
exitcode=0
|
||||
if [ ! -z "$docker_ps_grep_unhealthy" ]
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user