From 1c579ffcc5c449bb6ace0d917f751e4a12c782ff Mon Sep 17 00:00:00 2001 From: Tony Abboud Date: Fri, 13 Jan 2017 10:01:58 -0500 Subject: [PATCH] Add --add-host for docker build Signed-off-by: Tony Abboud --- image_build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/image_build.go b/image_build.go index 411d5493ea..cc5a71c2a1 100644 --- a/image_build.go +++ b/image_build.go @@ -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")