cmd/dist: add global connect-timeout for GRPC

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2017-02-28 16:43:08 -08:00
parent 317b884110
commit d61d0b5aef
No known key found for this signature in database
GPG key ID: 67B3DED84EDC823F
3 changed files with 9 additions and 4 deletions

9
cmd/dist/main.go vendored
View file

@ -40,9 +40,12 @@ distribution tool
Usage: "enable debug output in logs",
},
cli.DurationFlag{
Name: "timeout",
Usage: "total timeout for fetch",
EnvVar: "CONTAINERD_FETCH_TIMEOUT",
Name: "timeout",
Usage: "total timeout for dist commands",
},
cli.DurationFlag{
Name: "connect-timeout",
Usage: "timeout for connecting to containerd",
},
cli.StringFlag{
// TODO(stevvooe): for now, we allow circumventing the GRPC. Once