How to modify the network segment of docker0 bridge in windows-docker
我想大声告诉你
我想大声告诉你 2017-05-24 11:31:45
0
1
1031

Docker environment built using docker-toolbox on windows
The default docker0 bridge is 172.17.0.1 and it is not in the same network segment as the LAN
How to modify this IP?

I read a lot of people saying that they can modify it through a series of brctl instructions, but there is no such command in boot2docker, and all attempts to install it failed

我想大声告诉你
我想大声告诉你

reply all(1)
给我你的怀抱

1. Check the network

$docker network ls
$docker network inspect bridge

You can create your own network.
I think you misunderstood. Docker0 only defaults to 172.17.0.1, which is a bridge network card by default

$docker network create ....

You can specify the network you feel happy with

2. Modify the network card address of docker0
docker0 is the network link layer of the osi7 layer model

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template