Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service creating allows for two same published port in VirtualIp mode? #1494

Closed
allencloud opened this issue Sep 4, 2016 · 0 comments · Fixed by #1495
Closed

Service creating allows for two same published port in VirtualIp mode? #1494

allencloud opened this issue Sep 4, 2016 · 0 comments · Fixed by #1495
Milestone

Comments

@allencloud
Copy link
Contributor

Hi, All,

I tried the following command, and docker 1.12.1 allowed this:

docker service create -p 86:8001 -p 86:8000 ubuntu:14.04 sleep 10000

I published two same port for my service, and I think this is unreasonable for a service. Two different ports used inside a service mean that this service will listen to two different ports for different use, while the same published ports will make this situation ambiguous.

Please correct me if I am wrong and miss something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants