nlf / dlite

The simplest way to use Docker on OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Time drifts in dlite os

arnested opened this issue · 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").

For reference docker for mac fixed it by introducing a small ntp-client into the host-image docker/for-mac#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/