[root@ssrdb01 ~]# systemctl reset-failed docker.service [root@ssrdb01 ~]# systemctl status docker ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: inactive (dead) since Mon 2023-06-12 10:31:11 CST; 2min 15s ago Docs: https://docs.docker.com Process: 109338 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 109338 (code=exited, status=1/FAILURE) Jun 12 10:31:09 ssrdb01 systemd[1]: Failed to start Docker Application Container Engine. Jun 12 10:31:09 ssrdb01 systemd[1]: Unit docker.service entered failed state. Jun 12 10:31:09 ssrdb01 systemd[1]: docker.service failed. Jun 12 10:31:11 ssrdb01 systemd[1]: docker.service holdoff time over, scheduling restart. Jun 12 10:31:11 ssrdb01 systemd[1]: Stopped Docker Application Container Engine. Jun 12 10:31:11 ssrdb01 systemd[1]: start request repeated too quickly for docker.service Jun 12 10:31:11 ssrdb01 systemd[1]: Failed to start Docker Application Container Engine. Jun 12 10:31:11 ssrdb01 systemd[1]: Unit docker.service entered failed state. Jun 12 10:31:11 ssrdb01 systemd[1]: docker.service failed. [root@ssrdb01 ~]# systemctl reset-failed docker [root@ssrdb01 ~]# systemctl start docker Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
时间: 2024-03-29 19:39:07 浏览: 261
根据你提供的信息,Docker服务启动失败,可能是由于之前的错误导致服务被放置在“失败”状态,你可以尝试重置失败状态并重新启动服务,但是启动失败了,你需要查看详细信息,可以使用命令“systemctl status docker.service”和“journalctl -xe”来查看日志,从而找到故障原因并解决问题。
相关问题
[root@ssrdb01 ~]# systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Mon 2023-06-12 10:33:56 CST; 5min ago Docs: https://docs.docker.com Process: 109564 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 109564 (code=exited, status=1/FAILURE) Jun 12 10:33:54 ssrdb01 systemd[1]: Failed to start Docker Application Container Engine. Jun 12 10:33:54 ssrdb01 systemd[1]: Unit docker.service entered failed state. Jun 12 10:33:54 ssrdb01 systemd[1]: docker.service failed. Jun 12 10:33:56 ssrdb01 systemd[1]: docker.service holdoff time over, scheduling restart. Jun 12 10:33:56 ssrdb01 systemd[1]: Stopped Docker Application Container Engine. Jun 12 10:33:56 ssrdb01 systemd[1]: start request repeated too quickly for docker.service Jun 12 10:33:56 ssrdb01 systemd[1]: Failed to start Docker Application Container Engine. Jun 12 10:33:56 ssrdb01 systemd[1]: Unit docker.service entered failed state. Jun 12 10:33:56 ssrdb01 systemd[1]: docker.service failed. [root@ssrdb01 ~]#
根据你提供的最新信息,Docker服务启动失败,错误代码为1/FAILURE。错误消息显示“start request repeated too quickly”,这意味着Docker服务尝试了太多次启动,但都失败了。你可以尝试使用命令“systemctl reset-failed docker.service”来重置失败状态,并使用命令“journalctl -u docker.service”查看Docker服务的日志,从而找到故障原因并解决问题。
[root@duanxinyu ~]# systemctl start docker.service Failed to start docker.service: Unit docker.service not found.
在终端中输入 `[root@duanxinyu ~]# systemctl start docker.service` 时,收到 "Unit docker.service not found." 错误表明你尝试启动的服务名 `docker.service` 在当前系统中不存在。这可能是由于以下原因:
1. Docker服务未安装:首先确认你的系统上是否已经安装了Docker。如果是新安装或卸载过,需要重新安装。
2. 配置文件更改:如果你手动修改了系统服务的相关配置文件(如 `/lib/systemd/system/docker.service`),可能导致该服务名不再有效。
3. 升级或迁移后的遗留问题:如果之前从其他系统迁移到此环境,可能会忽略了一些必要的配置或服务。
要解决这个问题,可以按照以下步骤操作:
1. **确认安装**:使用 `systemctl list-units | grep docker` 来检查Docker服务是否已安装并启用。
2. **重新安装**:如果未安装,访问Docker官网下载适合你系统的版本并安装。
3. **修复配置**:如果服务名有误,查找原始的docker服务名(通常是 `docker.socket` 或 `docker.service`),然后修复启动命令。
4. **重启系统**:如果上述都无果,重启系统再试试看系统是否会自动修复服务注册。
阅读全文