diff --git a/components/cli/cli/command/image/build.go b/components/cli/cli/command/image/build.go index 33493f697c..4a9be0dc82 100644 --- a/components/cli/cli/command/image/build.go +++ b/components/cli/cli/command/image/build.go @@ -182,6 +182,10 @@ func runBuild(dockerCli command.Cli, options buildOptions) error { remote string ) + if options.compress && options.stream { + return errors.New("--compress conflicts with --stream options") + } + if options.dockerfileFromStdin() { if options.contextFromStdin() { return errors.New("invalid argument: can't use stdin for both build context and dockerfile")