问题报错:
Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
原因:因为没有网桥,导致docker无法启动
]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 52:54:00:ba:ae:c3 brd ff:ff:ff:ff:ff:ff
inet 10.105.202.252/18 brd 10.105.255.255 scope global eth0
valid_lft forever preferred_lft forever
#安装时没有自动创建docker0网桥
解决办法:
ip link add name docker0 type bridge
ip addr add dev docker0 172.17.0.1/16
ip link set docker0 up