From 43d45e601fa13bc43228ae3b76b1b5c5737b0558 Mon Sep 17 00:00:00 2001 From: Anders Janmyr Date: Wed, 7 Jan 2015 12:57:24 +0100 Subject: [PATCH] Add ProxyFromEnvironment enables client via proxy. Signed-off-by: Anders Janmyr --- api/client/cli.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/client/cli.go b/api/client/cli.go index 9f034d6c43..8c91f5fd74 100644 --- a/api/client/cli.go +++ b/api/client/cli.go @@ -155,6 +155,7 @@ func NewDockerCli(in io.ReadCloser, out, err io.Writer, key libtrust.PrivateKey, // The transport is created here for reuse during the client session tr := &http.Transport{ + Proxy: http.ProxyFromEnvironment, TLSClientConfig: tlsConfig, }