Out networks are defined in compose file with default settings and after a while we realized that it creates overlay network with subnet 10.0.2.0/24. Eventually we started to run out of IPs.
Now we would like to change subnet to something like /20. I suppose we need to create new network and attach it to every container, but that would require to recreate every container and that will cause downtime.
Is there any other approach for doing this ?
We have found a workaround. You can manually create the new network, connect it to all containers with aliases, and then disconnect old network from all containers and remove it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With