Open surajssd opened 7 years ago
With respect to port it is not giving any errors but the data is repeated as well when using list form of specifying ports! See https://github.com/kubernetes-incubator/kompose/pull/596#discussion_r116923543 for more details!
I have two docker-compose files which are similar:
which looks like this:
When fed to libcompose, while libcompose is trying to merge the info, it should detect the repetition of ports and error out, but it goes forward and merges it:
This works fine on docker-compose:
containers
When the docker-compose files are like this:
Just changed the port from
"80:80"
to"80"
.Now starting this:
containers:
The thing to note here is that it worked here because the same container port was exposed on two different ports on the host machine. Before it failed because it tried to map on the same port which was
80
.So the issue is solved by finding the repetition of ports in code before doing the deployment.