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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.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在启动时以退出代码退出_Docker_Service - Fatal编程技术网

Docker在启动时以退出代码退出

Docker在启动时以退出代码退出,docker,service,Docker,Service,我一启动Docker,它就无法启动,并说: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 当我尝试运行命令systemctl status docker.service时,它给出以下信息: Job for docker.service

我一启动Docker,它就无法启动,并说:

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
当我尝试运行命令
systemctl status docker.service
时,它给出以下信息:

 Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
    shivansh@localhost:~/Documents/Huawei/pulsar/docker-files/pulsarReporting/memcached$ systemctl status docker.service
    ● docker.service - Docker Application Container Engine
       Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since Tue 2016-10-25 11:10:12 IST; 13s ago
         Docs: https://docs.docker.com
      Process: 20514 ExecStart=/usr/bin/docker daemon -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE)
     Main PID: 20514 (code=exited, status=1/FAILURE)

    Oct 25 11:10:11 localhost systemd[1]: Starting Docker Application Container Engine...
    Oct 25 11:10:11 localhost docker[20514]: time="2016-10-25T11:10:11.789509056+05:30" level=info msg="[graphdriver] using prior storage driver \"aufs\""
    Oct 25 11:10:11 localhost docker[20514]: time="2016-10-25T11:10:11.914441951+05:30" level=info msg="Graph migration to content-addressability took 0.00 seconds"
    Oct 25 11:10:11 localhost docker[20514]: time="2016-10-25T11:10:11.918206945+05:30" level=info msg="Firewalld running: false"
    Oct 25 11:10:12 localhost docker[20514]: time="2016-10-25T11:10:12.697748195+05:30" level=fatal msg="Error starting daemon: Error initializing network controller: could not delete the default bridge network: network bridge has acti
    Oct 25 11:10:12 localhost systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
    Oct 25 11:10:12 localhost systemd[1]: Failed to start Docker Application Container Engine.
    Oct 25 11:10:12 localhost systemd[1]: docker.service: Unit entered failed state.
    Oct 25 11:10:12 localhost systemd[1]: docker.service: Failed with result 'exit-code'.
我不知道这里有什么问题。我在(Xenial Xerus)上使用Docker,对此我是相当陌生的。我尝试重新启动系统,但没有帮助。

此错误来自

在您的情况下,完整的错误消息是:

Error starting daemon: 
Error initializing network controller: 
could not delete the default bridge network: network bridge has active endpoints
例如,请参见中的可能解决方法

据推测,解决了在非正常守护程序关闭场景中修复活动端点问题的几个案例。
它仅适用于docker 1.12.2,因此请检查您当前的docker版本

Error starting daemon: 
Error initializing network controller: 
could not delete the default bridge network: network bridge has active endpoints
sudo rm -r /var/lib/docker/network