Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
docker.com服务失败。见';journalctl-xe';详情_Docker - Fatal编程技术网

docker.com服务失败。见';journalctl-xe';详情

docker.com服务失败。见';journalctl-xe';详情,docker,Docker,试图卸载docker并重新安装它,但它引发了相同的错误,docker守护进程正在运行。有人能在这里帮助我吗。docker需要的服务没有运行,因此systemd不会启动docker 尝试启动journalctl-f(不带-u)查看所有单元日志,然后启动docker并仔细阅读日志,您可能会看到其他一些单元尝试启动并失败。您可以通过运行找到docker未启动的原因 docker.service - Docker Application Container Engine Loaded: load

试图卸载docker并重新安装它,但它引发了相同的错误,docker守护进程正在运行。有人能在这里帮助我吗。

docker需要的服务没有运行,因此systemd不会启动docker


尝试启动
journalctl-f
(不带
-u
)查看所有单元日志,然后启动docker并仔细阅读日志,您可能会看到其他一些单元尝试启动并失败。

您可以通过运行找到docker未启动的原因

 docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Thu 2018-05-17 15:47:26 CEST; 17h ago
     Docs: https://docs.docker.com
 Main PID: 11843 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/docker.service

May 18 08:48:38 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 08:49:09 temp systemd[1]: Stopped Docker Application Container Engine.
May 18 08:49:09 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 08:49:09 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 08:49:15 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 08:49:15 temmp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 09:00:03 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 09:00:03 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
May 18 09:03:51 temp systemd[1]: Dependency failed for Docker Application Container Engine.
May 18 09:03:51 temp systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.
就我而言,这是Centos7与Docker 18.09的全新安装

/usr/bin/dockerd -H unix://
为了解决这个问题,我必须升级到一个更新的内核,并删除当前的docker存储

ERRO[2018-11-14T22:14:55.441548150+02:00] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.  storage-driver=overlay2
ERRO[2018-11-14T22:14:55.444930007+02:00] AUFS was not found in /proc/filesystems       storage-driver=aufs
ERRO[2018-11-14T22:14:55.447984399+02:00] 'overlay' not found as a supported filesystem on this host. Please ensure kernel is new enough and has overlay support loaded.  storage-driver=overlay

然后docker开始工作

你应该添加一些关于操作系统的信息,如何运行docker…你能分享你的
docker.service
文件的内容吗?可能的位置:
/etc/systemd/system/multi-user.target.wants/docker.service
。或者
find/etc-name docker.service
请发布您的docker版本和linux版本,以防延迟返回。Linux版本:Ubuntu 16.04。Docker版本:18.03.1-cedocker.service文件。
[Unit]Description=Docker应用程序容器引擎文档=https://docs.docker.com After=network-online.target docker.socket firewalld.service Wants=network-online.target Requires=docker.socket[service]Type=notify#默认情况下,对于docker ExecStart=/usr/bin/dockerd-H fd://ExecReload=/bin/kill-s HUP$MAINPID LimitNOFILE=1048576运行的容器,委托问题仍然存在,并且systemd当前不支持所需的cgroup功能集#
rm -rf /var/lib/docker