0

Docker container time is not in sync on WSL2?

How to make sure docker's time syncs with that of the host?

Time in Docker container out of sync with host machine

Tried both, but it doesn't work and because of that I can't download anything through npm.

admin@PC-SE-L356:~/projects/hg$ docker run -it alpine date
dWed Dec 22 00:09:58 UTC 2021
admin@PC-SE-L356:~/projects/hg$ date
Tue Dec 21 19:09:59 EST 2021
admin@PC-SE-L356:~/projects/hg$

Is there an easy way to fix this? I heard docker syncs with the host, but it doesn't seem to be the case with WSL2. I am using Docker for Windows and WSL2. I can't change the time insider of docker, but it doesn't sync time with the host, which is confusing to me.

seismic
  • 33
  • 4
  • Does this happen after Sleep or Hibernate (as noted in the question you linked)? Or is it some different issue? There are a lot of different suggestions in those two questions you linked -- please be specific on what you tried from them. Edit your question to include the details. Thanks! – NotTheDr01ds Dec 22 '21 at 14:53

0 Answers0