我正在尝试使用这个docker-ce安装流程。
当我运行sudo apt-get install docker-ce时
Setting up docker-ce (18.06.1~ce~3-0~ubuntu) ...
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2018-09-06 16:19:50 BST; 3ms ago
Docs: https://docs.docker.com
Process: 20289 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 20289 (code=exited, status=1/FAILURE)
Sep 06 16:19:50 henry-DT2216 systemd[1]: Failed to start Docker Application Container Engine.
Sep 06 16:19:50 henry-DT2216 systemd[1]: docker.service: Unit entered failed state.
Sep 06 16:19:50 henry-DT2216 systemd[1]: docker.service: Failed with result 'exit-code'.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)有人能就这个问题提出建议吗?
发布于 2018-09-06 21:09:42
在使用码头安装指南。安装停靠器之前,必须先删除以前版本的docker和docker引擎
sudo apt-get purge docker docker-engine如果您已经删除了以前版本的Docker,并且仍然存在前面提到的问题,那么您可能会在您的网络或虚拟专用网与docker0桥接口之间出现适当的网络范围重叠。
Docker试图查找是否有任何标准私有IP范围可供使用。
您可以通过提供与当前网络或vpn范围不同的bip选项以及daemon.json ( /etc/docker/daemon.json on Linux上的默认位置)文件中所需的子网来配置默认桥网络,如下面的示例所示:
{
"bip": "172.26.0.1/16"
}重新启动停靠守护进程
sudo systemctl restart dockerhttps://askubuntu.com/questions/1072898
复制相似问题