You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In the official docker-compost.yml file, this volume is included:
- /etc/localtime:/etc/localtime:ro
This is used to match the time zone to the host system's time. Unfortunately, /etc/localtime doesn't exist on every platform that Docker supports - I'm unsure if it works on Windows, but it does not work on macOS.
Describe the solution you'd like
It'd be great if the time zone could be set via env variable, or maybe in the config.yml file. The popular LinuxServer containers generally include support for a time zone variable like this:
TZ=America/New_York
Describe alternatives you've considered
As mentioned in the GitHub issue linked above, a good workaround is to specify your time zone in a new text file, then tell Docker that your file is /etc/localtime. For example, create a file named 'timezone', and add this line:
America/New_York
Place it somewhere and link it when specifying your volumes:
Additional context
It's been a few months since I've tried it, but I don't think it's possible to start Stash on Docker for Mac without implementing this workaround. I've been meaning to file this issue for a while. Please let me know if you need more information!
The text was updated successfully, but these errors were encountered:
slabking
changed the title
[Feature] Adjustments to time zone settings
[Feature] Adjustments to time zone settings for Docker
Mar 28, 2021
Is your feature request related to a problem? Please describe.
In the official docker-compost.yml file, this volume is included:
This is used to match the time zone to the host system's time. Unfortunately,
/etc/localtime
doesn't exist on every platform that Docker supports - I'm unsure if it works on Windows, but it does not work on macOS.See this GitHub issue for more information.
Describe the solution you'd like
It'd be great if the time zone could be set via env variable, or maybe in the config.yml file. The popular LinuxServer containers generally include support for a time zone variable like this:
Describe alternatives you've considered
As mentioned in the GitHub issue linked above, a good workaround is to specify your time zone in a new text file, then tell Docker that your file is
/etc/localtime
. For example, create a file named 'timezone', and add this line:Place it somewhere and link it when specifying your volumes:
Additional context
It's been a few months since I've tried it, but I don't think it's possible to start Stash on Docker for Mac without implementing this workaround. I've been meaning to file this issue for a while. Please let me know if you need more information!
The text was updated successfully, but these errors were encountered: