We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28cb2c5 commit a8e03d3Copy full SHA for a8e03d3
docker/utils/utils.py
@@ -92,6 +92,13 @@ def _convert_port_binding(binding):
92
result['HostIp'] = binding[0]
93
else:
94
result['HostPort'] = binding[0]
95
+ elif isinstance(binding, dict):
96
+ if 'HostPort' in binding:
97
+ result['HostPort'] = binding['HostPort']
98
+ if 'HostIp' in binding:
99
+ result['HostIp'] = binding['HostIp']
100
+ else:
101
+ raise ValueError(binding)
102
103
result['HostPort'] = binding
104
0 commit comments