Fit*_*ito 8 docker windows-subsystem-for-linux 22.04
按照一些教程安装 docker 后,例如这个:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-22-04
我尝试启动 docker 服务,它说它正在尝试启动(systemctl 东西对我不起作用,因为我得到了System has not been booted with systemd as init system):
$ sudo service docker start
* Starting Docker: docker
Run Code Online (Sandbox Code Playgroud)
但它在运行时永远不会如图所示启动
$ sudo service docker status
* Docker is not running
Run Code Online (Sandbox Code Playgroud)
Fit*_*ito 15
正如马可在这里所说:
https://crapts.org/2022/05/15/install-docker-in-wsl2-with-ubuntu-22-04-lts/
解决此问题的步骤是:
sudo update-alternatives --config iptablessudo service docker start| 归档时间: |
|
| 查看次数: |
19314 次 |
| 最近记录: |