add --network option for docker build

Signed-off-by: sandyskies <chenmingjie0828@163.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
sandyskies 2016-03-06 20:29:23 +08:00 committed by Tonis Tiigi
parent a6a247fdf9
commit 01832cc0ab
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ func imageBuildOptionsToQuery(options types.ImageBuildOptions) (url.Values, erro
} }
query.Set("cpusetcpus", options.CPUSetCPUs) query.Set("cpusetcpus", options.CPUSetCPUs)
query.Set("networkmode", options.NetworkMode)
query.Set("cpusetmems", options.CPUSetMems) query.Set("cpusetmems", options.CPUSetMems)
query.Set("cpushares", strconv.FormatInt(options.CPUShares, 10)) query.Set("cpushares", strconv.FormatInt(options.CPUShares, 10))
query.Set("cpuquota", strconv.FormatInt(options.CPUQuota, 10)) query.Set("cpuquota", strconv.FormatInt(options.CPUQuota, 10))