运行sudo systemctl start docker提示System has not been booted with systemd as init system (PID 1). Can't operate.
时间: 2023-11-07 11:02:58 浏览: 58
这个错误提示表明你的系统没有使用 Systemd 作为 init 系统。如果你想在这种情况下启动 Docker,你可以尝试以下方法之一:
1. 使用 SysVinit 启动 Docker:
- 运行 `sudo service docker start` 命令启动 Docker。
- 如果提示 `docker: unrecognized service`,可以尝试运行 `sudo /etc/init.d/docker start`。
2. 如果你的系统使用其他 init 系统(如 Upstart),可以尝试使用相应的命令启动 Docker。例如,对于 Upstart,你可以运行 `sudo start docker`。
3. 如果你的系统不是基于 Systemd 的 Linux 发行版,你可以尝试使用适用于你的系统的特定启动脚本来启动 Docker。请查阅相关文档以获取更多细节。
相关问题
sudo systemctl start docker System has not been booted with systemd as init system (PID 1). Can't operate.
这个错误信息是因为在当前系统中没有使用systemd作为init系统,而systemctl命令需要systemd来管理服务。因此,你需要使用其他方法来启动docker服务。可以尝试使用以下命令来启动docker服务:
```
sudo service docker start
```
如果你在WSL下使用systemctl命令启动服务,也会出现类似的错误。这是因为WSL并不支持systemd。你可以尝试使用以下方法来解决这个问题:
1. 使用service命令来启动服务,例如:
```
sudo service docker start
```
2. 在WSL中使用docker-desktop,它可以在Windows主机上运行docker服务,并通过WSL访问它。你可以在Microsoft Store中下载并安装docker-desktop。
希望这些方法可以帮助你解决问题。如果你还有其他问题,请随时提出。
restart docker.serviceSystem has not been booted with systemd as init system (PID 1). Can't operate.
当你在使用命令"systemctl start docker"启动docker时,出现了"System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down"的错误信息。这个错误通常意味着你的系统没有使用systemd作为初始化系统。解决这个问题的方法有几种。
首先,你可以尝试使用命令"sudo service docker start"来启动服务。这个命令在某些情况下可能会解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [解决WSL中启动docker出现的System has not been booted with systemd as init system (PID 1). Can‘t ...](https://blog.csdn.net/qq_45724216/article/details/114708087)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [System has not been booted with systemd as init system (PID 1). Can‘t operate.解决方法](https://blog.csdn.net/u012833399/article/details/128533933)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
相关推荐
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)