fcreplay icon indicating copy to clipboard operation
fcreplay copied to clipboard

Use the healthchecker feature of docker to handle failures

Open glisignoli opened this issue 3 years ago • 0 comments

faced the same problem and I solved it by using healthcheck feature of docker.

https://docs.docker.com/engine/reference/builder/#healthcheck

# Healthcheck
COPY healthcheck.sh /
RUN chmod +x /healthcheck.sh

HEALTHCHECK --interval=10s --retries=5 CMD /healthcheck.sh

glisignoli avatar Nov 20 '21 10:11 glisignoli