-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
area/swarmkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.priority/P1Important: P1 issues are a top priority and a must-have for the next release.Important: P1 issues are a top priority and a must-have for the next release.version/1.12
Milestone
Description
When creating a service that publishes two ports, but doesn't specify the host-port, service create fails;
$ docker service create --publish 80 --publish 443 --name web nginx:alpine
Error response from daemon: rpc error: code = 3 desc = EndpointSpec: duplicate published ports providedNote that this works;
docker service create --publish 80:80 --publish 443:443 --name web nginx:alpineAnd so does;
docker service create --publish 80 --name web nginx:alpineor
docker service create --publish 80 --name web nginx:alpineor
docker service create --publish 80:80 --publish 443 --name web nginx:alpineBased on the above (especially the last one), it looks like published multiple ports tries to assign the same "random" port multiple times.
Tested on;
Client:
Version: 1.12.2
API version: 1.24
Go version: go1.6.3
Git commit: bb80604
Built: Tue Oct 11 05:27:08 2016
OS/Arch: darwin/amd64
Experimental: true
Server:
Version: 1.12.2
API version: 1.24
Go version: go1.6.3
Git commit: bb80604
Built: Tue Oct 11 05:27:08 2016
OS/Arch: linux/amd64
Experimental: true
and on Linux (to exclude it being a Docker for Mac issue)
Client:
Version: 1.12.2
API version: 1.24
Go version: go1.6.3
Git commit: bb80604
Built: Tue Oct 11 17:39:06 2016
OS/Arch: linux/amd64
Experimental: true
Server:
Version: 1.12.2
API version: 1.24
Go version: go1.6.3
Git commit: bb80604
Built: Tue Oct 11 17:39:06 2016
OS/Arch: linux/amd64
Experimental: true
This looks to be a regression in 1.12.2.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/swarmkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.priority/P1Important: P1 issues are a top priority and a must-have for the next release.Important: P1 issues are a top priority and a must-have for the next release.version/1.12