|
|
|
@ -52,6 +52,7 @@ type buildOptions struct {
|
|
|
|
|
imageIDFile string
|
|
|
|
|
labels []string
|
|
|
|
|
networkMode string
|
|
|
|
|
noCacheFilter []string
|
|
|
|
|
outputs []string
|
|
|
|
|
platforms []string
|
|
|
|
|
quiet bool
|
|
|
|
@ -122,6 +123,7 @@ func runBuild(dockerCli command.Cli, in buildOptions) (err error) {
|
|
|
|
|
Labels: listToMap(in.labels, false),
|
|
|
|
|
NetworkMode: in.networkMode,
|
|
|
|
|
NoCache: noCache,
|
|
|
|
|
NoCacheFilter: in.noCacheFilter,
|
|
|
|
|
Pull: pull,
|
|
|
|
|
ShmSize: in.shmSize,
|
|
|
|
|
Tags: in.tags,
|
|
|
|
@ -363,6 +365,8 @@ func buildCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
|
|
|
|
|
|
|
|
|
|
flags.StringVar(&options.networkMode, "network", "default", `Set the networking mode for the "RUN" instructions during build`)
|
|
|
|
|
|
|
|
|
|
flags.StringArrayVar(&options.noCacheFilter, "no-cache-filter", []string{}, "Do not cache specified stages")
|
|
|
|
|
|
|
|
|
|
flags.StringArrayVarP(&options.outputs, "output", "o", []string{}, `Output destination (format: "type=local,dest=path")`)
|
|
|
|
|
|
|
|
|
|
flags.StringArrayVar(&options.platforms, "platform", platformsDefault, "Set target platform for build")
|
|
|
|
|