aerokube / windows-images

Step by step instructions for building Docker images with Windows
Apache License 2.0
221 stars 44 forks source link

time sync #11

Open 030 opened 5 years ago

030 commented 5 years ago

One could add instructions for configuring NTP

shxdxwraze commented 4 years ago

Bump, any workarounds for this?

emilorol commented 4 years ago

what about -rtc base=localtime,clock=host ?

emilorol commented 4 years ago

I solved this issue leaving open in the snapshot of the VM a batch script that every 30 seconds will sync the time. The solution while a bit overkill it works with not performance impact for the test or the host.

nilic10 commented 3 years ago

I have problem when run tests in parallel execution, some tests are run on the same container. I've fixed problem with time sync using @emilorol update, but problem with multiple tests running on the same container is still there. Do you have some solution for me ? Is it possible to sync time through entrypoint.sh ? Also I've tried with -rtc base=localtime,clock=host and it doesn't help.

emilorol commented 3 years ago

@nilic10 try the solution I mention with a batch script that runs every 30 second to keep the clock in sync. I know it is not the more awesome but it does work very good. The only down side is that you might have to re-save your image to add it.

nilic10 commented 3 years ago

@emilorol I mentioned that I've tried with your update with batch script runs on every 2 seconds, but I've still have problem.

arunganesh-a commented 3 years ago

Hi is there any update on this?. or work around available? even I am facing same issue with tests running with same session id.

vitrix1 commented 3 months ago

@nilic10 try the solution I mention with a batch script that runs every 30 second to keep the clock in sync. I know it is not the more awesome but it does work very good. The only down side is that you might have to re-save your image to add it.

Could you please provide a script to synchronize the time? I am facing the problem that if the time difference is more than 15 hours, then my script refuses to synchronize the time. My script: w32tm /resync /force