mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Optimized docker-health-check
This commit is contained in:
parent
70d28a2e6a
commit
95c1e9e942
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
docker_ps_grep_unhealthy="$(docker ps | grep unhealthy)"
|
docker_ps_grep_unhealthy="$(docker ps --filter health=unhealthy)"
|
||||||
docker_ps_grep_exited="$(docker ps -a | grep Exited)"
|
docker_ps_grep_exited="$(docker ps --filter status=exited)"
|
||||||
exitcode=0
|
exitcode=0
|
||||||
if [ ! -z "$docker_ps_grep_unhealthy" ]
|
if [ ! -z "$docker_ps_grep_unhealthy" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user