Need to modify the bridge adapter

I have run into a new issue where we have our IP address for the xibo host centos7 server as 172.20.82.82. This is worked fine until we needed to have a workstation connect into the xibo web interface. They are on the 172.18.0.0/16 network so it in in conflict with the bridge that docker is using. What exactly do I need to do to resolve this? I have seen this link Additional/second IP for XIBO-Docker but Im not sure exactly what I need to do.

This is my current routes on the xibo server

172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
172.18.0.0/16 dev br-595ebd6800c2 proto kernel scope link src 172.18.0.1
172.20.80.0/20 dev eth0 proto kernel scope link src 172.20.82.82 metric 100

The article you link to explains what needs to be done.

Edit your docker-compose file, and enter the details show, customising the subnet to whatever you would like to use instead - eg

networks:
  default:
    ipam:
      config:
        - subnet: 172.25.0.0/16

If 172.25.0.0/16 is suitable?

Then down/up the containers.

I want to change it to 192.168.1.0/24 I edited the file but I don’t see any change. How can I confirm it has taken effect?

You need to edit the file,and then down/up the containers for that to take effect.

I suspect that you won’t be able to use that range though. I’d use a free 172.x range as that’s what Docker is expecting.

I changed the range to 172.30.1.0/24

I did down and up docker and even rebooted and no change.

more specifically I did docker-compose stop and docker-compose start

I edited the docker-compose.yml file

down / up not stop / start

docker-compose down
docker-compose up -d

docker-compose.yml is the correct file to have edited if you’re not using custom ports, remote MySQL etc. If you are, then it’s the specific one of those you’re using that you should edit, and then you should add -f to the down/up commands as normal - eg

docker-compose -f cms_remote-ports.yml down
docker-compose -f cms_remote-ports.yml up -d

that worked perfect. Thank you very much.

Just curious what is the difference between stop and down and up and start?

stop and start stop and start the existing containers.

down and up destroy the containers (and network associated with them) and recreate them.

got it. Thanks again.