docker_auth icon indicating copy to clipboard operation
docker_auth copied to clipboard

Healthcheck

Open nenadalm opened this issue 8 years ago • 0 comments

Hi. Maybe it would be good idea to add healthcheck (https://docs.docker.com/engine/reference/builder/#healthcheck)? So that if something happens, container can be automatically restarted?

Maybe something like:

[[ "$(curl -o /dev/null -w '%{http_code}' https://127.0.0.1:5001/auth)" == 401 ]] && exit 0 || exit 1

(curl would have to be installed in the image) ?

nenadalm avatar Oct 09 '17 08:10 nenadalm