diff --git a/cli/command/container/cp.go b/cli/command/container/cp.go index bc32d2a2645b..8a020c2920c6 100644 --- a/cli/command/container/cp.go +++ b/cli/command/container/cp.go @@ -51,7 +51,6 @@ type copyProgressPrinter struct { toContainer bool total *float64 writer io.Writer - quiet bool } func (pt *copyProgressPrinter) Read(p []byte) (int, error) { @@ -357,7 +356,7 @@ func copyToContainer(ctx context.Context, dockerCli command.Cli, copyConfig cpCo fmt.Fprint(dockerCli.Err(), "Preparing to copy...\n") res := client.CopyToContainer(ctx, copyConfig.container, resolvedDstPath, content, options) fmt.Fprint(dockerCli.Err(), "\n") - fmt.Fprint(dockerCli.Err(), "Successfully copied ", units.HumanSize(float64(copiedSize)), " to ", copyConfig.container, ":", dstInfo.Path, "\n") + fmt.Fprint(dockerCli.Err(), "Successfully copied ", units.HumanSize(copiedSize), " to ", copyConfig.container, ":", dstInfo.Path, "\n") return res }