-
Notifications
You must be signed in to change notification settings - Fork 65
Support publishing container ports to the same "host" port on different VIC container networks #278
Comments
@alatdev looking through your
By the way, setting the network mode is actually supposed to completely toggle off the networking for the container. It doesn't make a lot of sense to connect networks to such a container. This probably the reason why your container is not in Please leave a reply if you need further assistance. |
@shadjiiski since Container Networks are special to VMware VIC, i thought it would be possible that each container with a Container Network can have the same port mapping - and that the usual network restrictions of standard Docker aren't valid. |
@alatdev have you confirmed that this is the case with the docker CLI against a VCH? The only environment that I have handy right now is a bit broken, but on it I get:
From this, I would conclude that it is not possible to map the same port on the default bridge network and that it is actually not possible to publish ports at all while being connected to a container network only. |
@shadjiiski I've tested your commands in my environment:
As you can see in |
@alatdev, thanks for your investigation and also thanks for bringing our attention to this gap in functionality. Originally, the networking features in Admiral were developed with plain old Docker in mind because VIC networking was not available back then. It seems that we have missed to cover this specific case for container networks in VIC, so I am marking the issue as an enhancement. Until this is resolved, please use the workarounds provided in one of my previous comments or alternatively specify distinct "host" ports for your containers. |
Hi,
I'm currently trying out vmware vic v1.3.1.
So I installed one vic-appliance and one VCH with a container-network to directly talk to the containers without NATing.
I've tried to scale out a container to have a second instance running, but in Admiral i get the error "No compute hosts found with unexposed ports".
I thought - since I have a container-network, each container is getting his own IP, and in the template for the container I've selected Network Mode "None" to have no bridged network - it would be possible.
For infos see attachments.
docker_inspect.txt
docker_info.txt
The text was updated successfully, but these errors were encountered: