From 8dec4bcce845786d13b4ec3582269333261bcfe3 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 4 Nov 2022 08:16:04 +0100 Subject: [PATCH] cleanup leftovers for --stream build flag Signed-off-by: CrazyMax --- cli/command/image/build.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cli/command/image/build.go b/cli/command/image/build.go index 1b03038b7c..c5cf3ac910 100644 --- a/cli/command/image/build.go +++ b/cli/command/image/build.go @@ -65,7 +65,6 @@ type buildOptions struct { squash bool target string imageIDFile string - stream bool platform string untrusted bool } @@ -154,9 +153,6 @@ func NewBuildCommand(dockerCli command.Cli) *cobra.Command { flags.SetAnnotation("squash", "experimental", nil) flags.SetAnnotation("squash", "version", []string{"1.25"}) - flags.BoolVar(&options.stream, "stream", false, "Stream attaches to server to negotiate build context") - flags.MarkHidden("stream") - return cmd } @@ -190,14 +186,6 @@ func runBuild(dockerCli command.Cli, options buildOptions) error { remote string ) - if options.stream { - _, _ = fmt.Fprint(dockerCli.Err(), `DEPRECATED: The experimental --stream flag has been removed and the build context - will be sent non-streaming. Enable BuildKit instead with DOCKER_BUILDKIT=1 - to stream build context, see https://docs.docker.com/go/buildkit/ - -`) - } - if options.dockerfileFromStdin() { if options.contextFromStdin() { return errStdinConflict