diff options
author | Qi Wang <qiwan@redhat.com> | 2019-08-06 11:22:18 -0400 |
---|---|---|
committer | Qi Wang <qiwan@redhat.com> | 2019-08-09 12:27:32 -0400 |
commit | cfdf891552704dce8020aa313f61bf85f5a6b072 (patch) | |
tree | 59e20810281dc7e1ec69910dc289081c769b9524 /cmd/podman/shared/create.go | |
parent | 66ae8ec037f8e30d62bbb5f0213b7e35cafb4408 (diff) | |
download | podman-cfdf891552704dce8020aa313f61bf85f5a6b072.tar.gz podman-cfdf891552704dce8020aa313f61bf85f5a6b072.tar.bz2 podman-cfdf891552704dce8020aa313f61bf85f5a6b072.zip |
fix create&run getting --authfile from cli
Add flag `--authfile` to create and run so Podman can read authfile path from not only environemnt variable REGISTRY_AUTH_FILE but also CLI
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/shared/create.go')
-rw-r--r-- | cmd/podman/shared/create.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/shared/create.go b/cmd/podman/shared/create.go index 7dccc41f1..1aa2412b0 100644 --- a/cmd/podman/shared/create.go +++ b/cmd/podman/shared/create.go @@ -83,7 +83,7 @@ func CreateContainer(ctx context.Context, c *GenericCLIResults, runtime *libpod. } else { return nil, nil, errors.Errorf("error, no input arguments were provided") } - newImage, err := runtime.ImageRuntime().New(ctx, name, rtc.SignaturePolicyPath, GetAuthFile(""), writer, nil, image.SigningOptions{}, false, nil) + newImage, err := runtime.ImageRuntime().New(ctx, name, rtc.SignaturePolicyPath, GetAuthFile(c.String("authfile")), writer, nil, image.SigningOptions{}, false, nil) if err != nil { return nil, nil, err } |