我通过 zypper 在 openSUSE Leap 15.0 上安装了 docker 17.09.1。不幸的是启动 docker 服务总是超时。
输出systemctl start docker
:
Job for docker.service failed because a timeout was exceeded.
See "systemctl status docker.service" and "journalctl -xe" for details.
输出journalctl
:
Oct 28 10:38:06 linux-j8zs dockerd[3786]: time="2018-10-28T10:38:06.692915975+01:00" level=warning msg="Your kernel does not support cgroup rt runtime"
Oct 28 10:38:06 linux-j8zs dockerd[3786]: time="2018-10-28T10:38:06.693258146+01:00" level=info msg="Loading containers: start."
Oct 28 10:39:36 linux-j8zs systemd[1]: docker.service: Start operation timed out. Terminating.
Oct 28 10:39:36 linux-j8zs dockerd[3786]: time="2018-10-28T10:39:36.730854796+01:00" level=info msg="Processing signal 'terminated'"
Oct 28 10:41:06 linux-j8zs systemd[1]: docker.service: State 'stop-sigterm' timed out. Killing.
Oct 28 10:41:06 linux-j8zs systemd[1]: docker.service: Killing process 3786 (dockerd) with signal SIGKILL.
Oct 28 10:41:06 linux-j8zs systemd[1]: docker.service: Main process exited, code=killed, status=9/KILL
Oct 28 10:41:06 linux-j8zs systemd[1]: Failed to start Docker Application Container Engine.
Oct 28 10:41:06 linux-j8zs systemd[1]: docker.service: Unit entered failed state.
Oct 28 10:41:06 linux-j8zs systemd[1]: docker.service: Failed with result 'timeout'.
我尝试过的:
有什么想法如何解决这个问题吗?
答案1
@马夫,
日志日志清楚地显示您的内核不支持 cgroup 功能。
level=warning msg="Your kernel does not support cgroup rt runtime"
尝试更新您的内核版本并重新启动。一旦服务器重新上线,您的 docker 服务将启动并运行。
问候,巴宾linuxsysadmins.com