From a8d0ab1a2159bf48c40c903c595d2a442a9abf49 Mon Sep 17 00:00:00 2001 From: overdogwatch Date: Thu, 27 Dec 2018 09:39:19 +0200 Subject: [PATCH] Update Dockerfile I guess that the purpose of this check is to verify that the container is listening on port 10514. Healthcheck default timeout is 30 sec. In places where the DNS resolver is not working properly, this check could take more than 30 sec, which leads to decide that the container health is unhealthy. I advise you to add to your check the option n, which prevents netstat trying to determine the symbolic host. Signed-off-by: overdogwatch --- make/photon/log/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/photon/log/Dockerfile b/make/photon/log/Dockerfile index d90fca272..b1e63a675 100644 --- a/make/photon/log/Dockerfile +++ b/make/photon/log/Dockerfile @@ -17,7 +17,7 @@ COPY ./make/photon/log/start.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/start.sh /etc/rsyslog.d/ && \ chown -R 10000:10000 /etc/rsyslog.conf /etc/rsyslog.d/ /run -HEALTHCHECK CMD netstat -ltu|grep 10514 +HEALTHCHECK CMD netstat -ltun|grep 10514 VOLUME /var/log/docker/ /run/ /etc/logrotate.d/