From 6dc427fb6125ce28f61fd2f5556c7eef29eb3a73 Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Mon, 10 Apr 2017 15:27:42 -0700 Subject: [PATCH] builder: add an option for specifying build target Signed-off-by: Tonis Tiigi --- image_build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/image_build.go b/image_build.go index cc5a71c2a1..bb69143e99 100644 --- a/image_build.go +++ b/image_build.go @@ -95,6 +95,7 @@ func (cli *Client) imageBuildOptionsToQuery(options types.ImageBuildOptions) (ur query.Set("cgroupparent", options.CgroupParent) query.Set("shmsize", strconv.FormatInt(options.ShmSize, 10)) query.Set("dockerfile", options.Dockerfile) + query.Set("target", options.Target) ulimitsJSON, err := json.Marshal(options.Ulimits) if err != nil {