From 2dcfdf5354421ee9769c0338a94cd9d0273d2a08 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Mon, 1 Feb 2016 14:36:40 -0500 Subject: [PATCH] handle debug mode for clients Signed-off-by: Brian Goff Upstream-commit: 78b0defcf344294874202e819dcb3f8a0daedf43 Component: engine --- components/engine/docker/client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/engine/docker/client.go b/components/engine/docker/client.go index 8395805b10..3b4c4f6321 100644 --- a/components/engine/docker/client.go +++ b/components/engine/docker/client.go @@ -6,6 +6,7 @@ import ( "github.com/docker/docker/cli" "github.com/docker/docker/cliconfig" flag "github.com/docker/docker/pkg/mflag" + "github.com/docker/docker/utils" ) var clientFlags = &cli.ClientFlags{FlagSet: new(flag.FlagSet), Common: commonFlags} @@ -24,5 +25,9 @@ func init() { if clientFlags.Common.TrustKey == "" { clientFlags.Common.TrustKey = filepath.Join(cliconfig.ConfigDir(), defaultTrustKeyFile) } + + if clientFlags.Common.Debug { + utils.EnableDebug() + } } }