Update kpod load to add signature-policy (2)

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
This commit is contained in:
TomSweeneyRedHat 2017-10-12 20:35:08 -04:00
parent cd1bac5ee0
commit 54a043bfcd
7 changed files with 60 additions and 5 deletions

View file

@ -21,6 +21,10 @@ var (
Name: "quiet, q",
Usage: "Suppress the output",
},
cli.StringFlag{
Name: "signature-policy",
Usage: "`pathname` of signature policy file (not usually used)",
},
}
loadDescription = "Loads the image from docker-archive stored on the local machine."
loadCommand = cli.Command{
@ -92,7 +96,7 @@ func loadCmd(c *cli.Context) error {
}
src := libpod.DockerArchive + ":" + input
if err := runtime.PullImage(src, false, "", output); err != nil {
if err := runtime.PullImage(src, false, c.String("signature-policy"), output); err != nil {
src = libpod.OCIArchive + ":" + input
// generate full src name with specified image:tag
if image != "" {

View file

@ -23,9 +23,8 @@ var (
Usage: "Download all tagged images in the repository",
},
cli.StringFlag{
Name: "signature-policy",
Usage: "`pathname` of signature policy file (not usually used)",
Hidden: true,
Name: "signature-policy",
Usage: "`pathname` of signature policy file (not usually used)",
},
}