From d6cab4fb8e5668e3124ee0319024fe15eb99e09b Mon Sep 17 00:00:00 2001 From: Daniel Jiang Date: Fri, 8 May 2020 11:35:35 +0800 Subject: [PATCH] fix: set root password never expire (#11851) Signed-off-by: Yiyang Huang Co-authored-by: Yiyang Huang --- make/photon/log/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/photon/log/Dockerfile b/make/photon/log/Dockerfile index 3080c7ff5..52d318b65 100644 --- a/make/photon/log/Dockerfile +++ b/make/photon/log/Dockerfile @@ -16,6 +16,8 @@ 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 /var/lib/logrotate/ +RUN chage -M 99999 root + HEALTHCHECK CMD netstat -ltun|grep 10514 VOLUME /var/log/docker/ /run/ /etc/logrotate.d/