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

Dies on changing localtime #5

Closed
fiddur opened this issue Dec 5, 2015 · 5 comments
Closed

Dies on changing localtime #5

fiddur opened this issue Dec 5, 2015 · 5 comments

Comments

@fiddur
Copy link

fiddur commented Dec 5, 2015

Starting up with suggested command leads to an error from a new localtime:

*** Running /etc/my_init.d/00_config.sh...
mv: cannot move '/etc/localtime.dpkg-new' to '/etc/localtime': Device or resource busy
*** /etc/my_init.d/00_config.sh failed with status 1

*** Killing all processes...

I tried giving it a rw localtime file with …:/etc/localtime:rw instead of ro, but I still get the above error message.

I'm quite new to docker, but it seems it doesn't handle replacing the file mounted on outside filesystem with mv…?

@aptalca
Copy link
Owner

aptalca commented Dec 7, 2015

Instead of the -v /etc/localtime:/etc/localtime:ro can you try using -e TZ="America/New_York" and see if that works?

You can change the timezone according to the list here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

Let me know if that solves the issue and I'll update the documentation

Thanks

@fiddur
Copy link
Author

fiddur commented Dec 8, 2015

Thanks! The -e worked well.

@aptalca
Copy link
Owner

aptalca commented Dec 8, 2015

Great!
Could you let me know what platform you are using this on? So I can try and trouble shoot and update the docs
Thanks

@fiddur
Copy link
Author

fiddur commented Dec 10, 2015

Debian Jessie, in Sweden.

@aptalca
Copy link
Owner

aptalca commented Dec 10, 2015

Thanks

@aptalca aptalca closed this as completed Dec 10, 2015
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

2 participants