LAN IP address for each container

Hello,

Background:
We have an application server which contains a web server and TCP port.
We want to run multiple instances (containers) of this application server, each with its own IP Address and its own web+application server.

Goal:
So far we were able to run containers with ‘hello-world’ php web server, each with its own port but that’s not what we need.
We have a LAN with IP of “10.208.255.xxx” .
Each container should have an IP address that should be exposed to our external host LAN (the IP can be manually written or given by the LAN’s DHCP).

OS:
First we would like to run the docker on host that run Ubuntu on VMware and in final configuration it should run on an native Ubuntu host.

Thanks!
Eyal

1 Like

For your purpose, Docker macvlan networking driver would help. For more details, you can refer to my blog(https://sreeninet.wordpress.com/2016/05/29/docker-macvlan-and-ipvlan-network-plugins/)

regards
Sreenivas

2 Likes

Many thanks !

You solved my issue. It works!

1 Like