Skip to content
Draft
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
3 changes: 2 additions & 1 deletion cli/command/image/build.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -315,9 +315,10 @@ func runBuild(ctx context.Context, dockerCli command.Cli, options buildOptions)
buildCtx = dockerfileCtx
}

var body io.Reader
var body io.ReadCloser
if buildCtx != nil {
body = progress.NewProgressReader(buildCtx, progressOutput, 0, "", "Sending build context to Docker daemon")
defer func() { _ = body.Close() }()
}

configFile := dockerCli.ConfigFile()
Expand Down
Loading