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:
parent
6532fb1072
commit
7288f7f868
@ -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"]
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user