ubuntu – Docker错误创建桥

使用以下命令在Ubuntu 14.04 minimal系统上安装Docker之后:

apt-get update
apt-get install docker.io
ln -sf /usr/bin/docker.io /usr/local/bin/docker
sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io

尝试运行docker守护程序时遇到以下问题:

# docker -d
[/var/lib/docker|3225259a] +job serveapi(unix:///var/run/docker.sock)
[/var/lib/docker|3225259a] +job initserver()
[/var/lib/docker|3225259a.initserver()] Creating server
2014/08/11 09:55:20 Listening for HTTP on unix (/var/run/docker.sock)
[/var/lib/docker|3225259a] +job init_networkdriver()
[/var/lib/docker|3225259a.init_networkdriver()] creating new bridge for docker0
Error creating bridge: package not installed
[/var/lib/docker|3225259a] -job init_networkdriver() = ERR (1)
Error creating bridge: package not installed
[/var/lib/docker|3225259a] -job initserver() = ERR (1)
2014/08/11 09:55:20 Error creating bridge: package not installed

我已经读过这个错误可能对应于内核.

uname -r给了我3.13.0-042stab092.2.

最佳答案
这意味着您没有加载桥接内核模块.在大多数机器上,加载模块如下所示:

sudo modprobe bridge

转载注明原文:ubuntu – Docker错误创建桥 - 代码日志