ctr: use transfer service by default
Prior to this commit, `--local=false` had to be explicitly specified to opt-in to the transfer service Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -71,7 +71,7 @@ var pushCommand = cli.Command{
|
||||
}, cli.IntFlag{
|
||||
Name: "max-concurrent-uploaded-layers",
|
||||
Usage: "Set the max concurrent uploaded layers for each push",
|
||||
}, cli.BoolTFlag{
|
||||
}, cli.BoolFlag{
|
||||
Name: "local",
|
||||
Usage: "Push content from local client rather than using transfer service",
|
||||
}, cli.BoolFlag{
|
||||
@@ -95,7 +95,7 @@ var pushCommand = cli.Command{
|
||||
}
|
||||
defer cancel()
|
||||
|
||||
if !context.BoolT("local") {
|
||||
if !context.Bool("local") {
|
||||
ch, err := commands.NewStaticCredentials(ctx, context, ref)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user