diff --git a/cloud/docker b/cloud/docker index eb379c27095..f14c5683999 100644 --- a/cloud/docker +++ b/cloud/docker @@ -450,6 +450,7 @@ class DockerManager: if expose_list: exposed = [] for port in expose_list: + port = port.strip() if port.endswith('/tcp') or port.endswith('/udp'): port_with_proto = tuple(port.split('/')) else: