mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
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"
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue