mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
Merge pull request #8113 from joselfr/master
Add missing --add-host args to the build command
This commit is contained in:
commit
245ede1d75
@ -1875,6 +1875,11 @@ class _CLIBuilder:
|
|||||||
command_builder.add_arg("--iidfile", iidfile)
|
command_builder.add_arg("--iidfile", iidfile)
|
||||||
command_builder.add_arg("--platform", platform)
|
command_builder.add_arg("--platform", platform)
|
||||||
command_builder.add_arg("--isolation", isolation)
|
command_builder.add_arg("--isolation", isolation)
|
||||||
|
|
||||||
|
if extra_hosts:
|
||||||
|
for host, ip in extra_hosts.items():
|
||||||
|
command_builder.add_arg("--add-host", "{}:{}".format(host, ip))
|
||||||
|
|
||||||
args = command_builder.build([path])
|
args = command_builder.build([path])
|
||||||
|
|
||||||
magic_word = "Successfully built "
|
magic_word = "Successfully built "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user