Yong Tang
3229d5a2cb
Fix issues of multiple published ports mapping to the same target port
...
This fix tries to address the issue raised in docker/docker-29730
where a service with multiple published ports mapping to the same target
port (e.g., `--publish 5000:80 --publish 5001:80`) can't be allocated.
The reason for the issue is that, `getPortConfigKey` is used for both
allocated ports and configured (may or may not be allocated) ports.
However, `getPortConfigKey` will not take into consideration the
`PublishedPort` field, which actually could be different for different
allocated ports.
This fix saves a map of `portKey:portNum:portState`, instead of currently
used `portKey:portState` so that multiple published ports could be processed.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
Upstream-commit: cb59bd0c5194f3f74cd405a87b562465219cad8a
Component: engine
2017-01-10 00:46:18 -08:00
..
2016-12-30 18:26:34 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 12:47:25 -08:00
2016-11-10 11:28:18 -05:00
2017-01-06 18:48:41 -08:00
2017-01-03 11:49:30 +01:00
2016-12-26 21:29:17 +01:00
2016-12-30 18:26:34 +01:00
2017-01-02 11:03:53 +01:00
2016-12-09 22:26:42 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2016-12-30 18:26:34 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-05 15:46:07 -08:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-05 13:55:43 -08:00
2016-12-30 18:26:34 +01:00
2017-01-06 12:10:59 -08:00
2016-12-30 18:26:34 +01:00
2017-01-06 18:48:41 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-04 14:12:49 -08:00
2016-12-30 18:26:34 +01:00
2017-01-03 11:49:30 +01:00
2017-01-04 11:04:00 +08:00
2017-01-03 11:49:30 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-27 12:27:41 -05:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-03 12:47:25 -08:00
2017-01-03 11:49:30 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-02 15:37:09 +01:00
2017-01-02 15:37:09 +01:00
2016-03-21 11:05:58 -04:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-05 13:55:43 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-05 13:55:43 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-04 14:16:42 -08:00
2016-12-30 18:26:34 +01:00
2017-01-06 18:48:41 -08:00
2017-01-06 18:48:41 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-02 11:03:53 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-03 11:47:39 +01:00
2016-12-30 18:26:34 +01:00
2017-01-06 18:48:41 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-06 14:07:48 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-02-02 19:56:31 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-10 00:46:18 -08:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-03 11:49:30 +01:00
2016-12-30 18:26:34 +01:00
2017-01-02 11:03:53 +01:00
2016-12-30 18:26:34 +01:00
2017-01-04 23:29:12 +08:00
2016-12-30 18:26:34 +01:00
2017-01-03 11:49:30 +01:00
2017-01-03 11:49:30 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2017-01-09 14:51:40 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00
2016-12-29 11:00:50 +01:00
2017-01-02 11:03:53 +01:00
2016-12-21 22:39:33 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-29 11:00:50 +01:00
2016-12-30 18:26:34 +01:00
2016-12-30 18:26:34 +01:00