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

Can't publish port again #3025

Open
MzoroHaHa opened this issue Aug 31, 2021 · 1 comment
Open

Can't publish port again #3025

MzoroHaHa opened this issue Aug 31, 2021 · 1 comment

Comments

@MzoroHaHa
Copy link

I'm using swarm . I have 3 node. one manager,two worker .
I start a service ,and publish a port like this :--publish 20000:20000.
The first time everything is ok. but when I delete this service ,then start this service use the same command ,
I can't attach the app in this service throgh 20000 port:

docker service create --network name=barn-stack_barn-network,alias=eureka --publish published=20000,target=20000 --replicas=2 zoro/eureka
root@zoro:~/files/workspace/swarm/stack# docker network ls
NETWORK ID     NAME                      DRIVER    SCOPE
rcpsmacuy0hw   barn-stack_barn-network   overlay   swarm
.....

I can confirm , no other program use the same port.

what should I do?

thanks.

@ieugen
Copy link

ieugen commented Dec 11, 2022

This issue is duplicate of #3026 .
Consider closing this one.

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

No branches or pull requests

2 participants