cmd/dist: add global connect-timeout for GRPC
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
317b884110
commit
d61d0b5aef
3 changed files with 9 additions and 4 deletions
9
cmd/dist/main.go
vendored
9
cmd/dist/main.go
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue