kpod pull needs to shutdown the runtime

Since kpod is using the new runtime code it needs to call
Shutdown, when it is finished to make sure the store is
cleaned up.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2017-09-14 13:46:29 +00:00
parent 400713a58b
commit aaa703e846

View file

@ -49,6 +49,7 @@ func pullCmd(c *cli.Context) error {
if err != nil {
return errors.Wrapf(err, "could not create runtime")
}
defer runtime.Shutdown()
if err := runtime.PullImage(image, c.Bool("all-tags"), os.Stdout); err != nil {
return errors.Errorf("error pulling image from %q: %v", image, err)
}