mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Optimized docker-health-check
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| #!/bin/sh | ||||
| docker_ps_grep_unhealthy="$(docker ps | grep unhealthy)" | ||||
| docker_ps_grep_exited="$(docker ps -a | grep Exited)" | ||||
| docker_ps_grep_unhealthy="$(docker ps --filter health=unhealthy)" | ||||
| docker_ps_grep_exited="$(docker ps --filter status=exited)" | ||||
| exitcode=0 | ||||
| if [ ! -z "$docker_ps_grep_unhealthy" ] | ||||
| then  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user