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

View File

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