Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit a9b3c5a

Browse files
Merge component 'cli' from git@github.com:docker/cli 19.03
2 parents 182eb01 + fd679d6 commit a9b3c5a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • components/cli/cli/command/container

components/cli/cli/command/container/run.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"fmt"
66
"io"
7-
"os"
87
"runtime"
98
"strings"
109
"syscall"
@@ -280,9 +279,9 @@ func attachContainer(
280279
func reportError(stderr io.Writer, name string, str string, withHelp bool) {
281280
str = strings.TrimSuffix(str, ".") + "."
282281
if withHelp {
283-
str += "\nSee '" + os.Args[0] + " " + name + " --help'."
282+
str += "\nSee 'docker " + name + " --help'."
284283
}
285-
fmt.Fprintf(stderr, "%s: %s\n", os.Args[0], str)
284+
fmt.Fprintln(stderr, "docker:", str)
286285
}
287286

288287
// if container start fails with 'not found'/'no such' error, return 127

0 commit comments

Comments
 (0)