Skip to content
Open
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
6 changes: 6 additions & 0 deletions cmd/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ func (errCtxSignalTerminated) Error() string {
}

func main() {
// The mousetrap (a hint shown when docker.exe is started from Explorer) only
// applies to a double-click, which passes no arguments. Checking for it takes
// two snapshots of all running processes on Windows, so skip it otherwise.
if len(os.Args) > 1 {
cobra.MousetrapHelpText = ""
}
err := dockerMain(context.Background())
if errors.As(err, &errCtxSignalTerminated{}) {
os.Exit(getExitCode(err))
Expand Down