Skip to content

Swarm mode services cannot publish ports as both TCP and UDP #27390

@jefflill

Description

@jefflill

Description

Docker swarm mode services cannot publish a port using both the TCP and UDP protocols.

Steps to reproduce the issue:

  1. Create a swarm mode cluster.
  2. Run: docker service create --name test -p 10000:10000 -p 10000:10000/udp alpine sleep 100000

Describe the results you received:
Error response from daemon: rpc error: code = 3 desc = EndpointSpec: duplicate published ports provided

Describe the results you expected:
The service should have been created with port 10000 mapped for both TCP and UDP.

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

Client:
 Version:      1.12.2
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   bb80604
 Built:        Tue Oct 11 18:29:41 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.2
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   bb80604
 Built:        Tue Oct 11 18:29:41 2016
 OS/Arch:      linux/amd64

Output of docker info:

Containers: 6
 Running: 3
 Paused: 0
 Stopped: 3
Images: 4
Server Version: 1.12.2
Storage Driver: overlay2
 Backing Filesystem: extfs
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: overlay bridge null host
Swarm: active
 NodeID: 57efxfpx4yqzx3vha67pmv998
 Is Manager: true
 ClusterID: 4oabtzwdobpc29fioqyzt49kt
 Managers: 1
 Nodes: 4
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: 10.0.1.30
Runtimes: runc
Default Runtime: runc
Security Options: apparmor seccomp
Kernel Version: 4.4.0-43-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 3.851 GiB
Name: manage-0
ID: CMHY:WEPP:RVWT:KJIP:RZ5G:ZIZH:FL2V:CENO:UISY:WVUM:NMF2:XPMV
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
 127.0.0.0/8

Additional environment details (AWS, VirtualBox, physical, etc.):
Running on Windows 10 on a local Hyper-V cluster of Ubuntu-16.04 VMs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/swarmkind/bugBugs 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.version/1.12

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions