Docker Community Forums

Share and learn in the Docker community.

Time drift on docker

Version 1.13.0-beta39 (15140)

I’m seeing this sort of thing:

$ docker run -ti busybox date && TZ=UTC date
Fri Feb 3 01:45:41 UTC 2017
Fri 3 Feb 2017 01:52:28 UTC

and to correct the time drift I need to shut down all containers and restart docker.

I’m guessing this is a problem with the xhive vm? Is there any fix or workaround for this that doesn’t involve restarting docker and its containers?

/d

Just providing some feedback in that this issue seems to be completely fixed in 1.13.1-beta42 (15350), there is no time drift at all now even after some days and a couple host machine sleeps.

thanks!

Must sync periodically. Just after a host wake up I see:

$ date -u && docker run busybox date
Thu 16 Feb 2017 07:07:20 UTC
Thu Feb 16 06:33:05 UTC 2017

(and shortly afterwards)

$ date -u && docker run busybox date
Thu 16 Feb 2017 07:09:05 UTC
Thu Feb 16 07:09:19 UTC 2017

Not perfect but only an occasional unpleasant side-effect.