We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7580f63 commit 3108083Copy full SHA for 3108083
1 file changed
cmd/docker/docker.go
@@ -81,10 +81,6 @@ func newDockerCommand(dockerCli *command.DockerCli) *cli.TopLevelCommand {
81
cmd.SetOut(dockerCli.Out())
82
cmd.SetErr(dockerCli.Err())
83
84
- // Cobra's context may be nil in some cases, so initialize it here.
85
- ctx := context.TODO()
86
- cmd.SetContext(ctx)
87
-
88
opts, helpCmd = cli.SetupRootCommand(cmd)
89
registerCompletionFuncForGlobalFlags(dockerCli, cmd)
90
cmd.Flags().BoolP("version", "v", false, "Print version information and quit")
0 commit comments