{"action":"created","issue":{"url":"https://api.github.com/repos/docker/for-mac/issues/2076","repository_url":"https://api.github.com/repos/docker/for-mac","labels_url":"https://api.github.com/repos/docker/for-mac/issues/2076/labels{/name}","comments_url":"https://api.github.com/repos/docker/for-mac/issues/2076/comments","events_url":"https://api.github.com/repos/docker/for-mac/issues/2076/events","html_url":"https://github.com/docker/for-mac/issues/2076","id":259268573,"number":2076,"title":"Time drift on MacOS","user":{"login":"oojacoboo","id":764664,"avatar_url":"https://avatars1.githubusercontent.com/u/764664?v=4","gravatar_id":"","url":"https://api.github.com/users/oojacoboo","html_url":"https://github.com/oojacoboo","followers_url":"https://api.github.com/users/oojacoboo/followers","following_url":"https://api.github.com/users/oojacoboo/following{/other_user}","gists_url":"https://api.github.com/users/oojacoboo/gists{/gist_id}","starred_url":"https://api.github.com/users/oojacoboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oojacoboo/subscriptions","organizations_url":"https://api.github.com/users/oojacoboo/orgs","repos_url":"https://api.github.com/users/oojacoboo/repos","events_url":"https://api.github.com/users/oojacoboo/events{/privacy}","received_events_url":"https://api.github.com/users/oojacoboo/received_events","type":"User","site_admin":false},"labels":[{"id":438330583,"url":"https://api.github.com/repos/docker/for-mac/labels/status/0-triage","name":"status/0-triage","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":29,"created_at":"2017-09-20T19:03:09Z","updated_at":"2018-03-15T04:58:58Z","closed_at":null,"author_association":"NONE","body":"Version 17.06.2-ce-mac27 (19124)\r\n\r\nCan confirm that there is time drift on the Docker client for Mac.  I was able to confirm that restarting the Docker client corrects the time issue.  Issue is present across all docker containers and `docker run busybox date`.\r\n\r\nThere are quite a few reports of this on previous versions.  And it was supposedly fixed, but it is not.\r\n\r\nThe time being off here was only about a minute prior to restarting the Docker client.  I cannot say how far it would have been off had the host been put to sleep.  In fact, that may have triggered an update and corrected the issue.\r\n\r\nIt seems the VM clock emulation is just not accurate.  Is the VM not using NTP?  Can we not have a cron re-sync regularly, even without a Docker client interruption?"},"comment":{"url":"https://api.github.com/repos/docker/for-mac/issues/comments/373261115","html_url":"https://github.com/docker/for-mac/issues/2076#issuecomment-373261115","issue_url":"https://api.github.com/repos/docker/for-mac/issues/2076","id":373261115,"user":{"login":"daneroo","id":326183,"avatar_url":"https://avatars0.githubusercontent.com/u/326183?v=4","gravatar_id":"","url":"https://api.github.com/users/daneroo","html_url":"https://github.com/daneroo","followers_url":"https://api.github.com/users/daneroo/followers","following_url":"https://api.github.com/users/daneroo/following{/other_user}","gists_url":"https://api.github.com/users/daneroo/gists{/gist_id}","starred_url":"https://api.github.com/users/daneroo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daneroo/subscriptions","organizations_url":"https://api.github.com/users/daneroo/orgs","repos_url":"https://api.github.com/users/daneroo/repos","events_url":"https://api.github.com/users/daneroo/events{/privacy}","received_events_url":"https://api.github.com/users/daneroo/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T04:58:58Z","updated_at":"2018-03-15T04:58:58Z","author_association":"NONE","body":"I just updated to edge channel of docker for mac.\r\nwhen I: `docker run --rm --net=host --pid=host --privileged -it justincormack/nsenter1 /bin/sh`\r\n`chronyc` does not seem to be installed.\r\n\r\nBut ntp seems to be running:\r\n```\r\n/ # ps auxww|grep ntp\r\n 1104 root       0:00 containerd-shim -namespace services.linuxkit -workdir /var/lib/containerd/io.containerd.runtime.v1.linux/services.linuxkit/ntpd -address /run/containerd/containerd.sock -containerd-binary /usr/bin/containerd\r\n 1126 root       0:00 /usr/sbin/ntpd -d -s\r\n 1195 123        0:00 ntpd: ntp engine\r\n 1197 123        0:00 ntpd: dns engine\r\n 2158 root       0:00 grep ntp\r\n```\r\n\r\nHere is the content of it's err log:\r\n```\r\n/ # cat /var/log/ntpd.err.log \r\ncreating new /var/db/ntpd.drift\r\nadjtimex adjusted frequency by 0.000000ppm\r\nntp engine ready\r\nno reply received in time, skipping initial time setting\r\n```\r\nThese files are both empty however:\r\n```\r\n/ # find / -name ntpd.drift\r\n/containers/services/ntpd/rootfs/var/db/ntpd.drift\r\n/containers/services/ntpd/tmp/upper/var/db/ntpd.drift\r\n```"}}
{"actor":{"display_login":"daneroo"}}