Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Create internal network
- Sudo docker network create -d bridge --subnet=172.16.1.0/24 --gateway=172.16.1.1 --ip-range=172.16.1.2/24 --internal --name DB
- #Create a subnet and attach it to an interface
- sudo docker network create -d macvlan --subnet=192.168.10.0/24 --gateway=192.168.10.1 --ip-range=192.168.10.32/27 -o parent=bond0 if01
- #Example
- docker network connect --ip X.X.X.X your_network_name your_container_name
- sudo docker network disconnect your_network_name your_container_name
- sudo docker run --net duck --ip 192.168.10.66 -it UK
Advertisement
Add Comment
Please, Sign In to add comment