Merge pull request #3305 from crazy-max/rm-stream

Cleanup leftovers for --stream build flag
This commit is contained in:
Brian Goff 2022-11-09 11:57:38 -08:00 committed by GitHub
commit 4011187b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -65,7 +65,6 @@ type buildOptions struct {
squash bool squash bool
target string target string
imageIDFile string imageIDFile string
stream bool
platform string platform string
untrusted bool untrusted bool
} }
@ -154,9 +153,6 @@ func NewBuildCommand(dockerCli command.Cli) *cobra.Command {
flags.SetAnnotation("squash", "experimental", nil) flags.SetAnnotation("squash", "experimental", nil)
flags.SetAnnotation("squash", "version", []string{"1.25"}) 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 return cmd
} }
@ -190,14 +186,6 @@ func runBuild(dockerCli command.Cli, options buildOptions) error {
remote string 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.dockerfileFromStdin() {
if options.contextFromStdin() { if options.contextFromStdin() {
return errStdinConflict return errStdinConflict