安装docker第一次启动失败了(网卡问题)

报错如下:

[root@i docker]# systemctl restart 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.

[root@i docker]# systemctl status docker.service
...
Jul 15 01:54:20 localhost.localdomain dockerd-current[44951]: Error starting daemon: Error initializing network controller
Jul 15 01:54:20 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, ...URE
Jul 15 01:54:20 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Jul 15 01:54:20 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Jul 15 01:54:20 localhost.localdomain systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
...

说明docker0网络未通,也就是说你需要创建docker0

[root@i ~]# brctl addbr docker0
[root@i ~]# ip addr add 172.17.0.1/16 dev docker0
[root@i ~]# ip link set dev docker0 up 

[root@i ~]# systemctl restart docker

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值