Docker Community Forums

Share and learn in the Docker community.

Assigning Multiple Ip Interfaces to a running container

(Shravan86) #1


I have an application running within the docker container.
This application is supposed to listen on tcp/udp ports for some messages.
While the container is running I have to attach new Ip addresses to this Application and start listening on those Ip interfaces. These Ip Address are assigned by an external DHCP Server and the server may not be in the same subnet as the Docker host running the container.

Assuming I have a DHCP relay application that takes care of this. , How can I achieve this using docker network primitives?