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

TZ variable to set correct timezone #8

Open
skylord123 opened this issue Feb 21, 2019 · 5 comments
Open

TZ variable to set correct timezone #8

skylord123 opened this issue Feb 21, 2019 · 5 comments

Comments

@skylord123
Copy link

Currently the container is set to timezone UTC which causes all of my timestamps to be wrong.

I fixed this by using the console of the container and running apt install tzdata and selecting my timezone using the prompts. It would be nice if there was just a TZ env variable that could be set instead (I have seen other containers take this approach).

@CraziFuzzy
Copy link

Going to agree on this one. Oddly enough, it looks like it is trying to do some sort of Time Zone setting, but it isn't working right. (My time zone in the container shows as 'America', using UST time).

@CraziFuzzy
Copy link

So, it appears that the major hiccup causing this is that tzdata is not installed in the container at this time. If it could be added to the dockerfile, I think it would use the TZ env variable by default, which would set the time in the container to be correct, so that file timestamps and log entries are correct.

@skylord123
Copy link
Author

So, it appears that the major hiccup causing this is that tzdata is not installed in the container at this time. If it could be added to the dockerfile, I think it would use the TZ env variable by default, which would set the time in the container to be correct, so that file timestamps and log entries are correct.

I wonder if it is possible to just mount the time directory on the host to the client as read-only? It's possible that may not work because tzdata isn't installed though. It may be worth trying though.

@CraziFuzzy
Copy link

I have simply gone into the container's shell and installed tzdata, and it was working - but it's not really a persistant fix if it isn't added into the dockerfile to do so on image build.

@neurocis
Copy link

Done - PR #18 also at qlustor/xeoma

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

3 participants