Multiple IP Addresses for Docker Containers AND the ability to modify gateway

Recommended Posts

I would like to stand up container and have it accessible on the local vlan and then have it route out via a vpn container on a different subnet with no gateway.


In fact, if I fail to define the gateway, then the system is only addressable on the local subnet, which would be ideal. 

Being not routable is far better than complicated iptables rules.


That aside, this would be a handy feature regardless.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.