From 414c8cdf83ebdfd53e1eef82ee458eea3255cd02 Mon Sep 17 00:00:00 2001 From: Stan Lagun Date: Wed, 15 Apr 2015 04:12:26 +0300 Subject: [PATCH] Fixes port binding in Docker Host port and container port were mixed up in container run command Change-Id: I128b6bf575b06c10ac80e2352d08e794ff897dc7 Closes-Bug: #1443725 --- DockerStandaloneHost/package/Resources/RunContainer.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DockerStandaloneHost/package/Resources/RunContainer.template b/DockerStandaloneHost/package/Resources/RunContainer.template index fe9520a..d7d8976 100644 --- a/DockerStandaloneHost/package/Resources/RunContainer.template +++ b/DockerStandaloneHost/package/Resources/RunContainer.template @@ -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))