madwulf

docker-synology

Feb 16th, 2024
1,114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #Create internal network
  2. 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
  3.  
  4. #Create a subnet and attach it to an interface
  5. 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
  6.  
  7. #Example
  8. docker network connect --ip X.X.X.X your_network_name your_container_name
  9. sudo docker network disconnect your_network_name your_container_name
  10. sudo docker run --net duck --ip 192.168.10.66 -it UK
Advertisement
Add Comment
Please, Sign In to add comment