FIXED: System has not been booted with systemd as init system (PID 1) on WSL2

FIXED: System has not been booted with systemd as init system (PID 1) on WSL2

FIXED: System has not been booted with systemd as init system (PID 1) on WSL2

Docker Oct 29, 2022

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!

Tags

Anurag Deep

Logical by Mind, Creative by Heart