Merge pull request #3554 from hsw/fix-debug-standalone

commands: fix debug flag in standalone mode
This commit is contained in:
Tõnis Tiigi
2025-12-12 16:07:35 -08:00
committed by GitHub
+1
View File
@@ -57,6 +57,7 @@ func NewRootCmd(name string, isPlugin bool, dockerCli *command.DockerCli) *cobra
options := cliflags.NewClientOptions()
options.InstallFlags(nflags)
options.SetDefaultOptions(nflags)
options.Debug = opt.debug || debug.IsEnabled()
return dockerCli.Initialize(options)
}
return plugin.PersistentPreRunE(cmd, args)