From 565f93531eae65ca85c286bf6bd2aa07eb713976 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 22 Apr 2020 11:45:31 -0700 Subject: V2 restore libpod.Shutdown() when exiting podman commands Signed-off-by: Jhon Honce --- cmd/podman/root.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/podman') 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 } -- cgit v1.2.3-54-g00ecf