Merge pull request #30186 from thaJeztah/add-version-annotation-to-flags

Add version annotation to various flags added in 1.13
This commit is contained in:
Alexander Morozov
2017-01-30 12:33:36 -08:00
committed by GitHub
9 changed files with 41 additions and 0 deletions

View File

@ -107,6 +107,7 @@ func NewBuildCommand(dockerCli *command.DockerCli) *cobra.Command {
flags.BoolVar(&options.compress, "compress", false, "Compress the build context using gzip")
flags.StringSliceVar(&options.securityOpt, "security-opt", []string{}, "Security options")
flags.StringVar(&options.networkMode, "network", "default", "Set the networking mode for the RUN instructions during build")
flags.SetAnnotation("network", "version", []string{"1.25"})
command.AddTrustVerificationFlags(flags)