I've been studying Docker and all the options available. And I have a VPS with 3 extra static IPs.
The idea is to connect each container to a different IP or maybe add 3 networks with different containers and having each network connected to a different IP. I saw few days ago some tutorials in the internet but I didn't saved them and I can't find them any more.
The IPs are static and were delivered by our ISP (ovh).
So far I tried to connect to IPs using subnet xx.xx.xx.xx/32 (only 1 IP) but it gives me error
PS. I'm newbie at Docker.
Edit
Just tried this code
docker network create \
--driver=bridge \
--subnet=AAA.BBB.CCC.DDD/32 \
--ip-range=AAA.BBB.CCC.DDD/32 \
--gateway=AAA.BBB.CCC.DDD \
br0
and I'm getting the current error
Error response from daemon: failed to allocate gateway (AAA.BBB.CCC.DDD): No available addresses on this pool
Also AAA.BBB.CCC.DDD stands for the public IP coming from the ISP