Support for health checks using CMD rather than CMD-SHELL
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', '/path/to/program', 'arg1', 'arg2', 'arg3']
Here is a PR to support CMD health checks https://github.com/testcontainers/testcontainers-node/pull/343
@cristianrgreco is there an expected time frame for this to get merged?
@richjharris sorry for the delay, haven't had much time to work on this lately. I'm hoping to get this done in the next couple of weeks
Released in 9.0.0