Merge pull request #30383 from TDAbboud/30096-add-host-docker-build

Add --add-host for docker build
This commit is contained in:
Sebastiaan van Stijn 2017-02-27 12:42:18 +01:00 committed by GitHub
commit a3adb78b05
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ func (cli *Client) imageBuildOptionsToQuery(options types.ImageBuildOptions) (ur
query := url.Values{
"t": options.Tags,
"securityopt": options.SecurityOpt,
"extrahosts": options.ExtraHosts,
}
if options.SuppressOutput {
query.Set("q", "1")