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:
parent
fc827e50b2
commit
414c8cdf83
@ -12,7 +12,7 @@ Parameters:
|
|||||||
|
|
||||||
Body: |
|
Body: |
|
||||||
options = ['-d', '--name ' + args.appName]
|
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))
|
options.append('-p {0}:{1}'.format(host_port, container_port))
|
||||||
for host_dir, container_dir in args.volumeMap.iteritems():
|
for host_dir, container_dir in args.volumeMap.iteritems():
|
||||||
options.append("-v '{0}':'{1}'".format(host_dir, container_dir))
|
options.append("-v '{0}':'{1}'".format(host_dir, container_dir))
|
||||||
|
Loading…
Reference in New Issue
Block a user