From d4b150ae841f54c9b41f9885e9e9c629286cbbf3 Mon Sep 17 00:00:00 2001 From: Christian Burmeister Date: Thu, 14 Nov 2019 18:59:36 +0100 Subject: [PATCH] Add docker console logging i have the problem that the acme.sh container does not show logs (docker-compose logs acme.sh), to fix this i changed the crond parameters. / # crond --help BusyBox v1.30.1 (2019-06-12 17:51:55 UTC) multi-call binary. Usage: crond -fbS -l N -d N -L LOGFILE -c DIR -f Foreground -b Background (default) -S Log to syslog (default) -l N Set log level. Most verbose 0, default 8 -d N Set log level, log to stderr -L FILE Log to FILE -c DIR Cron dir. Default:/var/spool/cron/crontabs --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5112bf07..7c5b6405 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,7 +59,7 @@ RUN for verb in help \ RUN printf "%b" '#!'"/usr/bin/env sh\n \ if [ \"\$1\" = \"daemon\" ]; then \n \ trap \"echo stop && killall crond && exit 0\" SIGTERM SIGINT \n \ - crond && while true; do sleep 1; done;\n \ + crond -l 2 -f && while true; do sleep 1; done;\n \ else \n \ exec -- \"\$@\"\n \ fi" >/entry.sh && chmod +x /entry.sh