Switch kpod load/push/save to use libpod runtime
Since this is the last use of libpod/images/copy.go, removing that code Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
8949e669c9
commit
e70802863e
6 changed files with 162 additions and 105 deletions
|
@ -28,6 +28,8 @@ func tagCmd(c *cli.Context) error {
|
|||
if err != nil {
|
||||
return errors.Wrapf(err, "could not create runtime")
|
||||
}
|
||||
defer runtime.Shutdown(false)
|
||||
|
||||
img, err := runtime.GetImage(args[0])
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -50,7 +52,7 @@ func addImageNames(runtime *libpod.Runtime, image *storage.Image, addNames []str
|
|||
}
|
||||
for _, name := range names {
|
||||
if err := runtime.TagImage(image, name); err != nil {
|
||||
return errors.Wrapf(err, "error adding names (%v) to image %q", name, image.ID)
|
||||
return errors.Wrapf(err, "error adding name (%v) to image %q", name, image.ID)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue