Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Arguments rename; removing timeout after ping
Browse files Browse the repository at this point in the history
  • Loading branch information
gr-rodion committed Aug 31, 2016
1 parent 5a55a51 commit b1856f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ func main() {
Name: "colors",
},
cli.DurationFlag{
Name: "docker-connect-timeout",
Name: "docker-ping-timeout",
Value: 2 * time.Second,
Usage: "Timeout in ms for docker to send a response",
Usage: "Timeout in ms for docker to send a response to ping during initialization",
},
cli.IntFlag{
Name: "docker-connect-retries",
Name: "docker-ping-retries",
Value: 5,
Usage: "Number of retries when checking docker during initialization of docker client. Sleep between retries: 1s",
},
Expand Down Expand Up @@ -627,6 +627,8 @@ func initComposeConfig(ctx *cli.Context, dockerCli *docker.Client) *config.Confi
time.Sleep(1 * time.Second)
}

dockerCli.SetTimeout(0 * time.Second)

return manifest
}

Expand Down

0 comments on commit b1856f2

Please sign in to comment.