From 01832cc0ab5741ba4caeeeb5666c302f235fb101 Mon Sep 17 00:00:00 2001 From: sandyskies Date: Sun, 6 Mar 2016 20:29:23 +0800 Subject: [PATCH] add --network option for docker build Signed-off-by: sandyskies 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 3abd87025e..4d611d5430 100644 --- a/image_build.go +++ b/image_build.go @@ -84,6 +84,7 @@ func imageBuildOptionsToQuery(options types.ImageBuildOptions) (url.Values, erro } query.Set("cpusetcpus", options.CPUSetCPUs) + query.Set("networkmode", options.NetworkMode) query.Set("cpusetmems", options.CPUSetMems) query.Set("cpushares", strconv.FormatInt(options.CPUShares, 10)) query.Set("cpuquota", strconv.FormatInt(options.CPUQuota, 10))