From 7288f7f8685af97c165a341719b0d37d28c35461 Mon Sep 17 00:00:00 2001 From: Tony Ko Date: Thu, 23 Nov 2017 13:32:22 -0500 Subject: [PATCH] Use more retries instead of a custom cycle to speed up health checking - (30s check, 30s timeout) vs (60s, 15s) --- Dockerfile | 4 ++-- Dockerfile.armhf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 112e3da..98dc0f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +ENTRYPOINT ["samba.sh"] diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 80bcbb7..a57174c 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -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"] \ No newline at end of file +ENTRYPOINT ["samba.sh"]