dlite icon indicating copy to clipboard operation
dlite copied to clipboard

Time drifts in dlite os

Open arnested opened this issue 7 years ago • 1 comments

Bug Reports

dlite version:

2.0.0-beta9 (dlite-os version 1.0.0-beta3)

expected behavior:

The time should be kept in sync with the MacOS time also when the Mac has been in sleep mode.

actual behavior:

If you let your Mac sleep the time inside the dlite os will not be insync when the Mac comes back from sleep.

steps to reproduce

Start dlite. Put you Mac to sleep. Wake it up after a noticeable time and observe the time.

When you keep dlite running for days or weeks and you put your MacBook to sleep during nights or weekends the time will be increasingly more off.

Today (2017-04-11) the time in dlite was only at (2017-04-02). Containers inherit the date from dlite-os and I ran into problems (a container contacted a webservice but failed because it was presented with a TLS-certificate from "the future").

arnested avatar Apr 11 '17 11:04 arnested

For reference docker for mac fixed it by introducing a small ntp-client into the host-image https://github.com/docker/for-mac/issues/2076 . A quick local hack is to run a privileged container to sync the host-clock https://hub.docker.com/r/eshork/docker-mac-chrony/

danquah avatar Dec 13 '18 07:12 danquah