I am very new to docker although I understand how it works I am having issues on the networking side of things. I tried to create a network with docker network create to get the containers to talk on my network I have two segments xxx.xxx.1.0 (net1) and xxx.xxx.10.0 (net10).
I have some ips I need to exclude so I used this to create it:
docker network create –driver=bridge --subnet=xxx.xxx.10.0/24 --ip-range=xxx.xxx.10.0/24 --gateway=xxx.xxx.10.1 MYNET --aux-address=xxx.xxx.10.xxx
The driver bridge I am not sure if it’s correct because 172.17.0.0/16 is assigned to it. What do I use to bridge my network to the host adapter? Also is there a way to exclude an ip-range without having to make my command 30 words long (by word I mean –aux-address=xxx.xxx.10.xxx)
Can I do this in the Dockerfile if so does someone have a good tutorial that I can look at?
My Docker version is:
API version: 1.35 (minimum version 1.12)
Go version: go1.9.4
Git commit: 7390fc6
Built: Tue Feb 27 22:15:56 2018
My OS is Debian 9.3
Hardware is 32 gb of ram AMD 8 core cpu with 16tb of external storage.