From 34afa7824e0401c9cab4d18138f20e57d9a209f6 Mon Sep 17 00:00:00 2001 From: jianghang8421 Date: Tue, 25 Jun 2019 16:15:29 +0800 Subject: [PATCH] Fix bug: Logrotate will start failed when the config file is not with 644 file permission. --- images/02-logrotate/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/images/02-logrotate/Dockerfile b/images/02-logrotate/Dockerfile index df2f76a5..b18b4b72 100644 --- a/images/02-logrotate/Dockerfile +++ b/images/02-logrotate/Dockerfile @@ -1,3 +1,4 @@ FROM rancher/os-base COPY . / +RUN chmod 644 /etc/logrotate.conf ENTRYPOINT ["/usr/bin/entrypoint.sh"]