Add kpod push
command
Push an image to a specified location, such as to an atomic registry or a local directory Signed-off-by: Ryan Cole <rcyoalne@gmail.com>
This commit is contained in:
parent
ab1fef9e1f
commit
680f7a6106
16 changed files with 1848 additions and 57 deletions
|
@ -118,8 +118,10 @@ func pullImage(store storage.Store, imgName string, allTags bool, sc *types.Syst
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer policyContext.Destroy()
|
||||
|
||||
copyOptions := getCopyOptions(os.Stdout, "", nil, nil, signingOptions{})
|
||||
|
||||
fmt.Println(tag + ": pulling from " + fromName)
|
||||
|
||||
return cp.Image(policyContext, destRef, srcRef, getCopyOptions(os.Stdout))
|
||||
return cp.Image(policyContext, destRef, srcRef, copyOptions)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue