To create a Docker custom Network Bridge custom Network Bridge configuration Docker0__docker

Source: Internet
Author: User

Stop the service first
sudo service docker stop
Down the original bridge.
Ifconfig Docker0 Down
Remove the original Network Bridge
sudo brctl delbr Docker0

Add Network Bridge
sudo brctl addbr bridge0
Configure the Network Bridge IP address
sudo ip addr add 192.168.3.1/24 dev bridge0
Start Network Bridge
Ifconfig bridge0 up

View Network Bridge Information
IP Addr Show Bridge0

There are two ways to make the Docker service use the newly configured Network Bridge: When starting the Docker engine, specify-B-bridge configuration Docker service, the default bridging to the created Network Bridge

echo "docker_opts="-b= "Bridge0" >>/ect/default/docker
sudo service start Docker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.