Spencer Skinner
Contributor
- Joined
- Dec 22, 2016
- Messages
- 179
Hi
Im trying to change the bridge subnet in my DockerVM to my main subnet which is 192.168.2.xxx.
From what Ive seem online you need to make/edit /etc/docker/daemon.json and add
Ive tried changing this to 192.168.2.1/24 and also tried 192.168.2.21/24 and every time I do this the Rancher interface becomes inaccessible on its normal IP 192.168.2.20:8080, the only time it works is if I use any IP which isnt 192.168.2.xxx essentially.
Im unsure as to what it is that I'm either not understanding or doing wrong?
To give context the reason I want to do this is so that my Docker containers when set to bridge mode will be accessible from the rest of the devices on my network. I'm aware I can change the Docker network to host and have the container accessible via my Docker host IP and container port (Although when I tried this with PMS it failed).
Any ideas as to what im doing wrong?
Thanks
Spencer
Im trying to change the bridge subnet in my DockerVM to my main subnet which is 192.168.2.xxx.
From what Ive seem online you need to make/edit /etc/docker/daemon.json and add
Code:
{ "bip": "172.26.0.1/16" }
Ive tried changing this to 192.168.2.1/24 and also tried 192.168.2.21/24 and every time I do this the Rancher interface becomes inaccessible on its normal IP 192.168.2.20:8080, the only time it works is if I use any IP which isnt 192.168.2.xxx essentially.
Im unsure as to what it is that I'm either not understanding or doing wrong?
To give context the reason I want to do this is so that my Docker containers when set to bridge mode will be accessible from the rest of the devices on my network. I'm aware I can change the Docker network to host and have the container accessible via my Docker host IP and container port (Although when I tried this with PMS it failed).
Any ideas as to what im doing wrong?
Thanks
Spencer