Exposing tcp and udp for same port fails. Fixes issue #4354.
This commit is contained in:
parent
8da5e2cb88
commit
95f69c55fa
1 changed files with 2 additions and 1 deletions
|
@ -1012,7 +1012,8 @@ class TaskParameters(DockerBaseClass):
|
||||||
protocol = 'tcp'
|
protocol = 'tcp'
|
||||||
match = re.search(r'(/.+$)', port)
|
match = re.search(r'(/.+$)', port)
|
||||||
if match:
|
if match:
|
||||||
protocol = match.group(1)
|
protocol = match.group(1).replace('/', '')
|
||||||
|
port = re.sub(r'/.+$', '', port)
|
||||||
exposed.append((port, protocol))
|
exposed.append((port, protocol))
|
||||||
if published_ports:
|
if published_ports:
|
||||||
# Any published port should also be exposed
|
# Any published port should also be exposed
|
||||||
|
|
Loading…
Reference in a new issue