MicrosoftDocs / WSL

Source code behind the Windows Subsystem for Linux documentation.
https://docs.microsoft.com/windows/wsl
Other
1.9k stars 563 forks source link

Need to enable systemd in wsl.conf #1750

Closed olaekdahl closed 1 year ago

olaekdahl commented 1 year ago

Documentation Issue

Running sudo service docker start is not going to work unless you run these commands first:

sudo -i
vi /etc/wsl.conf

Add these two line:

[boot]
systemd=true

Link to documentation page

https://learn.microsoft.com/en-us/windows/wsl/use-custom-distro

Suggested Improvements

No response

craigloewen-msft commented 1 year ago

sudo service docker start works with or without systemd support. Thanks for the feedback!

olaekdahl commented 1 year ago

I must be an edge case then. I get docker: unrecognized service without systemd.