Skip to content

Commit 929e909

Browse files
author
Dave Try
committed
testing windows healthcheck cmd
1 parent 5cf3677 commit 929e909

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

manifests/run.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@
216216
$exec_path = ['c:/Windows/Temp/', 'C:/Program Files/Docker/']
217217
$exec_provider = 'powershell'
218218
$cidfile = "c:/Windows/Temp/${service_prefix}${sanitised_title}.cid"
219+
$restart_check = "${docker_command} inspect ${sanitised_title} -f '{{ if eq \"unhealthy\" .State.Health.Status }} {{ .Name }}{{ end }}' | findstr ${sanitised_title}"
219220
} else {
220221
$exec_environment = 'HOME=/root'
221222
$exec_path = ['/bin', '/usr/bin']

0 commit comments

Comments
 (0)