summaryrefslogtreecommitdiff
path: root/cmd/kpod/create.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2017-11-25 09:37:50 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-27 14:22:47 +0000
commit548f1516dedbd9574f624967d7022d52eb4d6c13 (patch)
treee031fd855de923552dcffbf6dedc54c713d621ee /cmd/kpod/create.go
parentb1a3b030688e28e6d7473d998cabbf923a8064f9 (diff)
downloadpodman-548f1516dedbd9574f624967d7022d52eb4d6c13.tar.gz
podman-548f1516dedbd9574f624967d7022d52eb4d6c13.tar.bz2
podman-548f1516dedbd9574f624967d7022d52eb4d6c13.zip
kpod run, needs to shutdown the storage driver when done
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #73 Approved by: mheon
Diffstat (limited to 'cmd/kpod/create.go')
-rw-r--r--cmd/kpod/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/kpod/create.go b/cmd/kpod/create.go
index 9e4162993..2684f8927 100644
--- a/cmd/kpod/create.go
+++ b/cmd/kpod/create.go
@@ -149,6 +149,7 @@ func createCmd(c *cli.Context) error {
if err != nil {
return errors.Wrapf(err, "error creating libpod runtime")
}
+ defer runtime.Shutdown(false)
createConfig, err := parseCreateOpts(c, runtime)
if err != nil {
@@ -169,7 +170,6 @@ func createCmd(c *cli.Context) error {
if err != nil {
return err
}
- defer runtime.Shutdown(false)
if createImage.LocalName != "" {
imageName = createImage.LocalName
} else {