Unable to run any systemd services in WSL
23,514
Solution 1
cron
is a systemd
service which you can still run in WSL. See this answer as a guide for how you might setup your kubelet
application:
To expand on this link, you can modify Windows startup to load WSL with the background services minimized:
Solution 2
Nowadays you can try:
sudo service docker start
when using WSL2, if you are running on windows version 2004 or higher (I assume).
Related videos on Youtube
Author by
Santosh Hegde
Updated on September 18, 2022Comments
-
Santosh Hegde almost 2 years
None of the systemd commands are working inside WSL( Ubuntu Bash 18.04). When I ran
sudo systemctl is-active kubelet
, error isoutput: System has not been booted with systemd as init system (PID 1). Can't operate. : running command: sudo systemctl is-active kubelet
How to enable systemd feature in WSL? Whats the way to get rid of
System has not been booted with systemd
-
Nmath over 3 yearsLink only answers are considered low quality and they become obsolete if the link is changed, moved, or deleted. You should edit your answer and make sure that the essential parts of your solution are in your answer here. Nobody should actually have to visit any link to understand your solution. askubuntu.com/tour