Docker Community Forums

Share and learn in the Docker community.

Forward bridge to specific ip

Hi everyone
I have been trying for a while but I have not yet succeeded in my intent and I ask you this.
On docker host I set a bond0 with 3 ip: bond0, bond0: 21 and bond0: 22.
Now I would like to create a bridge in the docker where all the traffic that goes out and in goes exclusively from bond0: 21 for example.
container1 |
container2 |—>bridge1 docker —> bond0:21 (
container2 |

in this way then I hook a public ip to bond0:21

it’s possible?
Thanks so much