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:
parent
400713a58b
commit
aaa703e846
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue