-
Notifications
You must be signed in to change notification settings - Fork 287
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
Wrong Date/Time #72
Comments
@devlife thanks for the report. We use the in kernel Hyper-V time synchronisation and it should work, but may only gradually adjust time. A couple of questions:
|
This is happening to me as well, since last update |
Same problem happening to me. The clock drift corresponded exactly to the time my laptop was in sleep mode. I didn't realize it immediately, but I started to see wrong behaviors in my Docker applications (ELK stack reporting logs with a time difference) just after resuming. |
@rneugeba My computer was not set to sleep. I'll set my computer to sleep and check the time and see if the gap has lessened. |
Disabling and then enabling again the MobyLinuxVM > Settings > Integration Services > Time synchronization service from Hyper-V Manager resyncs the clock of containers immediately. |
Unfortunately I have issues with this as well. I'm using docker for windows mainly as some build/cross-compilation tool, by running a build scripts inside linux containers. This problems e.g. leads to automake failing:
Always happens if the PC is going to sleep (e.g. during lunch time). Does not recover until I manually restart docker, so I think it's not really syncing during runtime but only at startup. |
My symptom was that on every change vim would say "WARNING File has changed since last read!". Took me ages to figure out it was a time problem. This was not happening 2 or 3 updates ago, even with regular laptop sleep/hibernation. |
also ran into that problem while running terraform within a container to create an infrastructure on azure. |
For me, resuming from hibernate leaves the docker clock at the same time it was hibernated at. Restarting docker fixes the timestamp, but also means restarting containers... |
same issue here, exactly as reported by @cfstras . Annoying thing for me is one of the containers is running keycloak and after the laptop sleeps, it issues OIDC certificates with an outdated timstamp so all my authentication chain is broken. I would rather have docker stop all my containers after a sleep, at least I would know I have to restart everything. |
Add me to the list. Using |
Using Docker GUI to Restart Docker appears fix it immediately every time. Though there has got to be a more elegant solution. |
Any update/priority on this issue? |
Hi everyone, a fix should ship in the next Beta version (Beta31), scheduled next week. |
@devlife @cvillerm @Matthias247 @cfstras @provegard @zifik @rcarmo Beta 31 was just released. It's expected to fix this issue. Please give it a try! |
I'm also experiencing this issue. I'm experimenting with leaving the Time Synchronisation service off and getting my containers syncing with something like |
This issue is still ocurring on the latest version:
Are there any plans to actually fix this? The problem happened after the PC hibernated. The solution to disable and reenable time synchronization on HyperV works, but we shouldn't have to do this manually. |
I have the exact same issue and it messes up all sorts of things. I usually fix it by restarting docker but there really should be a better fix... |
Is this issue still tracked somewhere else? The issue is reproducible with Docker Edge Version 2.1.7.0. |
I'm also seeing this on V19.03.5. This doesn't appear to be fixed. |
Having the same problem. V19. Please Help |
I also have this Problem on docker V.19.0.3.5. Its very annoying to restart the service every morning :/ |
I also have this Problem |
Note: This issue still exists, and will cause certificate failures in a docker image when trying to do a dotnet restore. |
I'm seeing this on Windows 10 running Docker version 19.03.2, build 6a30dfc It stops an apt-get update on build as it thinks some security-updates are from the future. I'm currently over 16hours off. |
Same issue with Docker 19.03.5 on Windows but running Linux VMs on Windows Subsystem for Linux (WSL). Restarting Docker fixes the issue. |
Hi. Same issue running Docker Desktop Community 19.03.5 pn Windows 10. Using windows containers with microsoft/iis base image. Restarting Docker Desktop doesn't seem to help. Recreating the image doesn't seem to help either. |
Time slip of 4 minutes after bringing the host up from sleep. Diagnostics ID: 1CE0BF2A-0D0C-4EA2-BECE-8C51FE289A95/20200123010621 |
Definitely not fixed. Should we open a new issue? |
I also have this some times, I try to restart the service and sometimes it get fixed but not always.. In such cases i get a new error called "Error getting userland proxy(...)". As soon as I get this the only solution seems to be restarting the whole pc :/ |
@ftrauernicht There's a new issue at #4526 :) |
In release note: |
Known issue means it's fixed, or if we know about it, we can just forget it? 😃 |
@lucaalex87 as of 3 days ago, there's an installer linked here that appears to fix the issue. Still not stable / release, but a fix if you need it: |
@davclark Thank you for this comment - I'll give it a try! :) I wasn't aware of the other issue number. |
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
I would expect the container date and time would match host date and time
Actual behavior
The container is a day+ behind my windows host
Information
Steps to reproduce the behavior
docker run...
for ubuntu:latestdate
from within the containerThe text was updated successfully, but these errors were encountered: