Files
docker-volume-backup/docs/how-tos/set-container-timezone.md
Mitchell Michalak 4ddacc91d4 Documentation updates (#750)
* add /usr/share/zoneinfo bind mount

* update description with timezone bind mount

* correct image size (uncompressed)

* remove specific image size
2026-03-16 20:10:15 +01:00

789 B

title, layout, parent, nav_order
title layout parent nav_order
Set the timezone the container runs in default How Tos 8

Set the timezone the container runs in

By default a container based on this image will run in the UTC timezone. As the image is designed to be as small as possible, additional timezone data is not included. In case you want to run your cron rules in your local timezone (respecting DST and similar), you can mount your Docker host's /etc/timezone, /etc/localtime, and /usr/share/zoneinfo in read-only mode:

services:
  backup:
    image: offen/docker-volume-backup:v2
    volumes:
      - data:/backup/my-app-backup:ro
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
      - /usr/share/zoneinfo:/usr/share/zoneinfo:ro

volumes:
  data: