Skip to content

Commit fb2b707

Browse files
Allow extra_hosts to be a list too
The current map syntax does not allow the API equivalent of --add-host foo:1.1.1.1 --add-host foo:2.2.2.2 The above will map one hostname to two IPs. The above is valid in Docker.
1 parent 7b2fd8c commit fb2b707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def create_host_config(
434434
for k, v in sorted(six.iteritems(extra_hosts))
435435
]
436436

437-
host_config['ExtraHosts'] = extra_hosts
437+
host_config['ExtraHosts'] = extra_hosts
438438

439439
if links is not None:
440440
if isinstance(links, dict):

0 commit comments

Comments
 (0)