fixed default Docker port to match post 1.0
This commit is contained in:
parent
177d9cab93
commit
cc87e7a1fa
2 changed files with 4 additions and 3 deletions
1
plugin/pipeline/pipeline.go
Normal file
1
plugin/pipeline/pipeline.go
Normal file
|
@ -0,0 +1 @@
|
||||||
|
package pipeline
|
|
@ -13,14 +13,14 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/dotcloud/docker/pkg/term"
|
|
||||||
"github.com/dotcloud/docker/pkg/stdcopy"
|
"github.com/dotcloud/docker/pkg/stdcopy"
|
||||||
|
"github.com/dotcloud/docker/pkg/term"
|
||||||
"github.com/dotcloud/docker/utils"
|
"github.com/dotcloud/docker/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
APIVERSION = 1.9
|
APIVERSION = 1.9
|
||||||
DEFAULTHTTPPORT = 4243
|
DEFAULTHTTPPORT = 2375
|
||||||
DEFAULTUNIXSOCKET = "/var/run/docker.sock"
|
DEFAULTUNIXSOCKET = "/var/run/docker.sock"
|
||||||
DEFAULTPROTOCOL = "unix"
|
DEFAULTPROTOCOL = "unix"
|
||||||
DEFAULTTAG = "latest"
|
DEFAULTTAG = "latest"
|
||||||
|
@ -104,7 +104,7 @@ func (c *Client) setHost(defaultUnixSocket string) {
|
||||||
// we'll try to connect to the default tcp address
|
// we'll try to connect to the default tcp address
|
||||||
if _, err := os.Stat(defaultUnixSocket); err != nil {
|
if _, err := os.Stat(defaultUnixSocket); err != nil {
|
||||||
c.proto = "tcp"
|
c.proto = "tcp"
|
||||||
c.addr = "0.0.0.0:4243"
|
c.addr = "0.0.0.0:2375"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue