我利用菜鸟教程中的脚本进行安装的docker。Ubuntu Docker 安装 | 菜鸟教程 (runoob.com)

安装完成后,需要启动docker,我使用

sudo systemctl start docker.service

却提示:

System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

发现问题是:WSL 中不支持 systemctl ,并找到相应的文章WSL 中不支持 systemctl 怎么办,解决办法为用service命令代替。

sudo service docker start