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.