S
S
stanced2015-09-16 20:18:49
Network administration
stanced, 2015-09-16 20:18:49

How to add a docker container gateway on Mac OS X?

Hello, there are several docker containers on Mac OS X. There are several network interfaces, let's say eth0 and eth1, each interface has its own gateway, let's say 192.168.1.1 and 192.168.0.1. How to make the first container look at the Internet through gateway number one, the other through gateway number two.
The ultimate goal is to do curl -4 icanhazip.com in two containers and see the different IPs of the two providers.
I didn’t have to work with docker, but I need a solution urgently :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question