handle debug mode for clients
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
725b5b595b
commit
78b0defcf3
|
@ -6,6 +6,7 @@ import (
|
||||||
"github.com/docker/docker/cli"
|
"github.com/docker/docker/cli"
|
||||||
"github.com/docker/docker/cliconfig"
|
"github.com/docker/docker/cliconfig"
|
||||||
flag "github.com/docker/docker/pkg/mflag"
|
flag "github.com/docker/docker/pkg/mflag"
|
||||||
|
"github.com/docker/docker/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
var clientFlags = &cli.ClientFlags{FlagSet: new(flag.FlagSet), Common: commonFlags}
|
var clientFlags = &cli.ClientFlags{FlagSet: new(flag.FlagSet), Common: commonFlags}
|
||||||
|
@ -24,5 +25,9 @@ func init() {
|
||||||
if clientFlags.Common.TrustKey == "" {
|
if clientFlags.Common.TrustKey == "" {
|
||||||
clientFlags.Common.TrustKey = filepath.Join(cliconfig.ConfigDir(), defaultTrustKeyFile)
|
clientFlags.Common.TrustKey = filepath.Join(cliconfig.ConfigDir(), defaultTrustKeyFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if clientFlags.Common.Debug {
|
||||||
|
utils.EnableDebug()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue