diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-04-22 11:45:31 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-04-22 14:25:40 -0700 |
commit | 565f93531eae65ca85c286bf6bd2aa07eb713976 (patch) | |
tree | a36ef0168a0edbd34a5eb539d24062b9ad788aa0 /cmd | |
parent | 142757bd7288ccdb88d8f1322932f999ffb18c02 (diff) | |
download | podman-565f93531eae65ca85c286bf6bd2aa07eb713976.tar.gz podman-565f93531eae65ca85c286bf6bd2aa07eb713976.tar.bz2 podman-565f93531eae65ca85c286bf6bd2aa07eb713976.zip |
V2 restore libpod.Shutdown() when exiting podman commands
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/root.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/root.go b/cmd/podman/root.go index 667f7e588..84c3867f2 100644 --- a/cmd/podman/root.go +++ b/cmd/podman/root.go @@ -155,6 +155,9 @@ func persistentPostRunE(cmd *cobra.Command, args []string) error { cfg.Span.Finish() cfg.SpanCloser.Close() } + + registry.ImageEngine().Shutdown(registry.Context()) + registry.ContainerEngine().Shutdown(registry.Context()) return nil } |