From cc87e7a1fa97840a04d4be804c97fc46e8483ce5 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 23 Sep 2014 23:36:07 -0700 Subject: [PATCH] fixed default Docker port to match post 1.0 --- plugin/pipeline/pipeline.go | 1 + shared/build/docker/client.go | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 plugin/pipeline/pipeline.go diff --git a/plugin/pipeline/pipeline.go b/plugin/pipeline/pipeline.go new file mode 100644 index 00000000..fb2071c7 --- /dev/null +++ b/plugin/pipeline/pipeline.go @@ -0,0 +1 @@ +package pipeline diff --git a/shared/build/docker/client.go b/shared/build/docker/client.go index 063e772e..d5a1061c 100644 --- a/shared/build/docker/client.go +++ b/shared/build/docker/client.go @@ -13,14 +13,14 @@ import ( "os" "strings" - "github.com/dotcloud/docker/pkg/term" "github.com/dotcloud/docker/pkg/stdcopy" + "github.com/dotcloud/docker/pkg/term" "github.com/dotcloud/docker/utils" ) const ( APIVERSION = 1.9 - DEFAULTHTTPPORT = 4243 + DEFAULTHTTPPORT = 2375 DEFAULTUNIXSOCKET = "/var/run/docker.sock" DEFAULTPROTOCOL = "unix" DEFAULTTAG = "latest" @@ -104,7 +104,7 @@ func (c *Client) setHost(defaultUnixSocket string) { // we'll try to connect to the default tcp address if _, err := os.Stat(defaultUnixSocket); err != nil { c.proto = "tcp" - c.addr = "0.0.0.0:4243" + c.addr = "0.0.0.0:2375" } } }