Skip to content

Instantly share code, notes, and snippets.

@booyaa
Created February 7, 2020 10:39
Show Gist options
  • Save booyaa/2d59d6a83ded95a66b300f70019d4d11 to your computer and use it in GitHub Desktop.
Save booyaa/2d59d6a83ded95a66b300f70019d4d11 to your computer and use it in GitHub Desktop.
WSL2 workarounds

WSL2 known issues and their workarounds

WSL2: docker: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown.

issues:

workaround

sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd

Clock drift causing TLS issues

issues:

workaround(s)

If you need to stay in your session

sudo hwclock -s

Otherwise at the end of the working day shut your vm down.

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