Windows11 的 WSL 中的docker启动失败 System has not been booted with systemd as init system (PID 1). Can‘t o

  • Post author:
  • Post category:其他


/root/.hushlogin file.

root@DESKTOP-K529L3B:~# docker ps -a

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

root@DESKTOP-K529L3B:~# systemctl start docker

System has not been booted with systemd as init system (PID 1). Can’t operate.

Failed to connect to bus: Host is down

root@DESKTOP-K529L3B:~# sudo service docker start

* Starting Docker: docker                                                                                       [ OK ]

root@DESKTOP-K529L3B:~# docker ps -a

使用命令错误

sudo service docker start

启动成功



版权声明:本文为wxb880114原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。