Fix bug where too many '/tcp' suffixes were added to port config
This commit is contained in:
parent
18525554ed
commit
ae67d55bf2
2 changed files with 1 additions and 3 deletions
|
|
@ -225,8 +225,6 @@ class Service(object):
|
|||
port = str(port)
|
||||
if ':' in port:
|
||||
port = port.split(':')[-1]
|
||||
if '/' not in port:
|
||||
port = "%s/tcp" % port
|
||||
ports.append(port)
|
||||
container_options['ports'] = ports
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue