Skip to content

Instantly share code, notes, and snippets.

@repodevs
Created May 18, 2021 08:02
Show Gist options
  • Save repodevs/be77af7ccccace5f854d08ed8fa295e7 to your computer and use it in GitHub Desktop.
Save repodevs/be77af7ccccace5f854d08ed8fa295e7 to your computer and use it in GitHub Desktop.
WSL 2 docker debian error when apt-get update

When Docker Desktop installed on Windows and WSL 2 activated and then the compute hibernate. the date inside the docker will not up to date with the host. this issue will cause error in debian container (for exampe: doing apt update)

to solve the error, update the clock with

wsl -d docker-desktop hwclock -s in CMD.

ref: microsoft/WSL#4114 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment