Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup leftovers for --stream build flag #3305

Merged
merged 1 commit into from
Nov 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions cli/command/image/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ type buildOptions struct {
squash bool
target string
imageIDFile string
stream bool
platform string
untrusted bool
}
Expand Down Expand Up @@ -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
}

Expand Down Expand Up @@ -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
Expand Down