-
Notifications
You must be signed in to change notification settings - Fork 120
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 isn't synced between machine and docker #693
Comments
Seems a restart fixed the issue. |
My colleague @ashishbagri7 and I had the same issue, after restart of docker itself the time is synced. I suspect it has to do with hibernation of the Mac itself. I'll try to reproduce. Diag ID FB729667-58C7-452F-92E0-C68BBBCD51C4 |
I had the same issue, originally posted in Docker issue queue: A restart also fixes the problem for me. |
Time is not synced to docker because timezone is not synced on Mac automatically, according to this issue: moby/moby#27488
However, checkbox "Set date and time automatically" is checked in the Date & Time settings on MacOS and synced with "Apple Americas/U.S. (time.apple.com.)" (running El Capitan). I can reproduce this behavior consistently. Yesterday morning I restarted Docker. Time in container was identical to time on host machine, and was still identical at the end of the workday (did not hibernate my Mac in the meanwhile). Mac was hibernated in the evening and tonight. Clock is now over 13 hours behind.
|
meet the same problem, both mac os and docker is the newest. |
@mauritsl there is no Should look like:
|
The "If your system does not have access to an NTP server" paragraph near the end of https://docs.docker.com/docker-for-mac/troubleshoot/ contains a possible workaround for this sort of thing (namely adding the local clock as a low priority NTP source). |
Closing as a duplicate of #17 |
Allow issued_at Header Parameter. This is a workaround, when using in docker (docker/for-mac#693)
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Time should be synced between machine and docker container
Actual behavior
Time isn't synced between machine and docker container
Information
Steps to reproduce the behavior
/etc/localtime:/etc/localtime:ro
The text was updated successfully, but these errors were encountered: