< 返回技术文档列表

windows 中 wsl2报错启动服务

发布时间:2022-11-17 22:37:28⊙投诉举报

启动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

处理方式
sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfig

sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target


/template/Home/Zkeys/PC/Static