Fixes port binding in Docker

Host port and container port were mixed up in container
run command

Change-Id: I128b6bf575b06c10ac80e2352d08e794ff897dc7
Closes-Bug: #1443725
This commit is contained in:
Stan Lagun 2015-04-15 04:12:26 +03:00
parent fc827e50b2
commit 414c8cdf83

View File

@ -12,7 +12,7 @@ Parameters:
Body: |
options = ['-d', '--name ' + args.appName]
for container_port, host_port in args.portMap.iteritems():
for host_port, container_port in args.portMap.iteritems():
options.append('-p {0}:{1}'.format(host_port, container_port))
for host_dir, container_dir in args.volumeMap.iteritems():
options.append("-v '{0}':'{1}'".format(host_dir, container_dir))