-
Notifications
You must be signed in to change notification settings - Fork 117
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
Allow to disable forced time synchronization between host and Docker for Mac VM #2979
Comments
Thanks for your report and sorry the recent NTP fixes caused you problems. I think the simplest way to disable the time sync is to kill the NTP client in the VM using a command like This will take effect until the next time the VM is rebooted. Let me know if this works for you. In the meantime I'll tag this as a feature request for future consideration. |
@djs55, thanks David, your workaround did the job like a charm. For anybody else coming my steps, the one-liner to disable NTP would be |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
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
Docker allows privileged containers to override the time, global for Docker for Mac virtual machine. It should be possible to disable forced time synchronization between Docker for Mac virtual machine and host, via some sort of configuration/experimental option.
Actual behavior
Setting date in the Docker privileged container only updates it for 10 seconds or less, then it is automatically updated from the host. There is no way to turn off this behavior via any kind of configuration file.
Information
Our project uses scheduled jobs that run at specific time intervals, often spanning a month or more. So, as part of our QA process, we are using
date --set
command in the privileged container to advance time in the whole Docker for Mac virtual machine, all at once, to trigger these scheduled jobs and verify they are working good.An update that forces Docker for Mac virtual machine to always sync time with host breaks this process and makes it impossible to advance time and ensure the correct operation of scheduled jobs.
Diagnostic logs
Steps to reproduce the behavior
Run this:
If time wasn't synced during the sleep, test will output
PASSED
, otherwise time has been altered externally, and test will outputFAILED
.This fails on
18.05.0-ce-mac66 (24545) / edge / e4c62d3168
, but passes on18.04.0-ce-mac62 (23965) / edge / e0a85f64c1
.The text was updated successfully, but these errors were encountered: