Closed qclaogui closed 2 months ago
Currently only CMD-SHELL health checks are supported which require a shell on the docker container to run. distroless docker images like mockserver don't have a shell so that mechanism doesn't work, see https://github.com/GoogleContainerTools/distroless/issues/183.
To support docker containers without a shell the health check needs to be in the format:
test: ['CMD', '/usr/bin/wget', 'arg1', 'arg2', 'arg3']
Currently only CMD-SHELL health checks are supported which require a shell on the docker container to run. distroless docker images like mockserver don't have a shell so that mechanism doesn't work, see https://github.com/GoogleContainerTools/distroless/issues/183.
To support docker containers without a shell the health check needs to be in the format: