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

@@ -86,7 +86,7 @@ If foobar.tar contains an OCI ref named "latest" and anonymous ref "sha256:deadb
Name: "no-unpack",
Usage: "Skip unpacking the images, cannot be used with --discard-unpacked-layers, false by default",
},
cli.BoolTFlag{
cli.BoolFlag{
Name: "local",
Usage: "Run import locally rather than through transfer API",
},
@@ -113,7 +113,7 @@ If foobar.tar contains an OCI ref named "latest" and anonymous ref "sha256:deadb
}
defer cancel()
if !context.BoolT("local") {
if !context.Bool("local") {
var opts []image.StoreOpt
prefix := context.String("base-name")
var overwrite bool