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:
Akihiro Suda
2023-11-28 23:05:52 +09:00
parent 02e0fef84b
commit eb123db5fb
5 changed files with 10 additions and 10 deletions

View File

@@ -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