Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Adjustments to time zone settings for Docker #1238

Open
slabking opened this issue Mar 28, 2021 · 0 comments
Open

[Feature] Adjustments to time zone settings for Docker #1238

slabking opened this issue Mar 28, 2021 · 0 comments

Comments

@slabking
Copy link

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.

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:

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:

- /Users/Shared/docker/stash/etc/timezone:/etc/localtime:ro

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!

@slabking slabking changed the title [Feature] Adjustments to time zone settings [Feature] Adjustments to time zone settings for Docker Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant