Hello.

Is it possible for a docker container to use a different gateway on my network. For example.

The container is on 10.0.0.10

My default gateway (router) is 10.0.0.1.

I have another host that has a gateway on 10.0.0.4.

I checked online, advise was to add a docker network with subnet and gateway IP. I tried that but it killed my connection to 10.0.0.4, wasn’t able to ssh into it. And the container could not connect or ping 10.0.0.4.

Thanks.