Use more retries instead of a custom cycle to speed up health checking - (30s check, 30s timeout) vs (60s, 15s)

This commit is contained in:
Tony Ko 2017-11-23 13:32:22 -05:00
parent 6532fb1072
commit 7288f7f868
2 changed files with 4 additions and 4 deletions

View File

@ -42,9 +42,9 @@ COPY samba.sh /usr/bin/
EXPOSE 137/udp 138/udp 139 445
HEALTHCHECK --interval=60s --timeout=15s \
HEALTHCHECK --retries=6 \
CMD smbclient -L '\\localhost\' -U 'guest%' -m SMB3
VOLUME ["/etc/samba"]
ENTRYPOINT ["samba.sh"]
ENTRYPOINT ["samba.sh"]

View File

@ -37,11 +37,11 @@ RUN ["cross-build-end"]
COPY samba.sh /usr/bin/
HEALTHCHECK --interval=60s --timeout=15s \
HEALTHCHECK --retries=6 \
CMD smbclient -L '\\localhost\' -U 'guest%' -m SMB3
EXPOSE 137/udp 138/udp 139 445
VOLUME ["/etc/samba"]
ENTRYPOINT ["samba.sh"]
ENTRYPOINT ["samba.sh"]