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

Time sync with host in ssh container #7

Open
dhess opened this issue Mar 16, 2017 · 0 comments
Open

Time sync with host in ssh container #7

dhess opened this issue Mar 16, 2017 · 0 comments

Comments

@dhess
Copy link

dhess commented Mar 16, 2017

The ssh container appears to have the same time sync issue that has plagued Docker for Mac since they switched the implementation to HyperKit (at least that far back), namely that if the host Mac goes to sleep, the container's time does not keep up and will fall behind the host. Unfortunately, in my case, at least, restarting the container does not fix the issue.

This behavior is not unique to your container:

https://www.reddit.com/r/docker/comments/58ozxh/ntp_in_the_container_or_sync_with_host/
docker/for-mac#17
docker/for-mac#500
docker/for-mac#693
moby/moby#27488

That's just a small sample of the issues that have been reported and/or filed on upstream. It seems unlikely they'll fix it anytime soon. In the meantime, perhaps it would help to run ntpd in the container and to run ntpdate on restart.

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