docker 网桥

# Stopping Docker and removing docker0 sudo service docker stop
sudo ip link set dev docker0 down
sudo brctl delbr docker0 # Create our own bridge sudo brctl addbr bridge0
sudo ip addr add 192.168.5.1/24 dev bridge0
sudo ip link set dev bridge0 up # Confirming that our bridge is up and running ip addr show bridge0 # Tell Docker about it and restart (on Ubuntu) echo 'DOCKER_OPTS="-b=bridge0"' >> /etc/default/docker
sudo service docker start


ifconfig|grep docker0 查看默认路由​
brctl  addbr docker0  添加​路由

你可能感兴趣的:(docker)