FIXED: System has not been booted with systemd as init system (PID 1) on WSL2
Platform:
win10Pro-1903-18362.239
subLinux: ubuntu1804/2204
Error:
when we try to run Docker with below command.
sudo systemctl start docker
It does not start docker-daemon
, instead it shows following error to us.
System has not been booted with systemd as init system (PID 1). Can'toperate
Solution:
Instead of using
sudo systemctl start docker
use following command to start it.
sudo /etc/init.d/docker start
Thanks!