fcreplay
fcreplay copied to clipboard
Use the healthchecker feature of docker to handle failures
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