Skip to content

Commit

Permalink
Add help text and example for setting the timezone (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
moschlar authored Feb 8, 2022
1 parent 75eb265 commit 68b2bd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 68b2bd1

Please sign in to comment.