From 644187d4884f134b9b22611d06d0d3f466da1b50 Mon Sep 17 00:00:00 2001 From: Moritz Schlarb Date: Fri, 4 Feb 2022 10:04:34 +0100 Subject: [PATCH] Add help text and example for setting the timezone --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9748e42..fdec1b1 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ You can enable old image autocleaning on service update by setting the `IMAGE_AU You can enable one shot running with `RUN_ONCE_AND_EXIT` variable. +If you care about log entries having the right timezone, you can set the `TZ` variable to the correct value (make sure to *not* include quotation marks in the variable value). + Example: docker service create --name shepherd \ @@ -65,6 +67,7 @@ Example: --env IMAGE_AUTOCLEAN_LIMIT="5" \ --env RUN_ONCE_AND_EXIT="true" \ --env ROLLBACK_ON_FAILURE="true" \ + --env TZ=Europe/Berlin \ --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock,ro \ --mount type=bind,source=/root/.docker/config.json,target=/root/.docker/config.json,ro \ mazzolino/shepherd