1

I need to reload the daemon using systemctl command in ubuntu terminal on window 10. I attached the error I received.

The error:

bashdos@yana:~$ systemctl
System has not been booted with systemd as init system (PID 1). Can't operate.
vvvvv
  • 25,404
  • 19
  • 49
  • 81
Yana
  • 87
  • 1
  • 1
  • 11

2 Answers2

3

WSL doesn't have systemd implemented therefore in Ubuntu you need to run for example service start ssh or you can call the binary directly such as /etc/init.d/ssh start/stop/restart.

vvvvv
  • 25,404
  • 19
  • 49
  • 81
WSLUser
  • 601
  • 5
  • 10
1

I had this problem running WSL 2

the solution was the command

 $ sudo dockerd

Open other terminal and try it

 $ docker ps -a

if after that you still have a problem with permission, run the command:

 $ sudo usermod -aG docker your-user
Felipe Augusto
  • 1,341
  • 1
  • 16
  • 18