mirror of https://github.com/docker/cli.git
Add --add-host for docker build
Signed-off-by: Tony Abboud <tdabboud@hotmail.com>
This commit is contained in:
parent
d5e4c0d0be
commit
1c579ffcc5
|
@ -48,6 +48,7 @@ func (cli *Client) imageBuildOptionsToQuery(options types.ImageBuildOptions) (ur
|
||||||
query := url.Values{
|
query := url.Values{
|
||||||
"t": options.Tags,
|
"t": options.Tags,
|
||||||
"securityopt": options.SecurityOpt,
|
"securityopt": options.SecurityOpt,
|
||||||
|
"extrahosts": options.ExtraHosts,
|
||||||
}
|
}
|
||||||
if options.SuppressOutput {
|
if options.SuppressOutput {
|
||||||
query.Set("q", "1")
|
query.Set("q", "1")
|
||||||
|
|
Loading…
Reference in New Issue