Query docker container stuff
Add the following to Dockerfile:
HEALTHCHECK –interval=10s –timeout=3s CMD curl -s smtp://localhost/ || exit 1
$ docker inspect –format “{{.State.Health.Status}}” 0dbed54e70cc
healthy
$ docker inspect –format “{{.State.Status}}” 0dbed54e70cc
running
Leave a Reply