From c9f763456cd8263c3f2d84c6b2b6e17ad81cf3ba Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 31 May 2018 11:47:17 -0700 Subject: libpod: Execute poststop hooks locally Instead of delegating to the runtime, since some runtimes do not seem to handle these reliably [1]. [1]: https://github.com/projectatomic/libpod/issues/730#issuecomment-392959938 Signed-off-by: W. Trevor King Closes: #864 Approved by: rhatdan --- libpod/container.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod/container.go') diff --git a/libpod/container.go b/libpod/container.go index 1e3b923c0..85b6fa3dd 100644 --- a/libpod/container.go +++ b/libpod/container.go @@ -166,6 +166,10 @@ type containerState struct { // UserNSRoot is the directory used as root for the container when using // user namespaces. UserNSRoot string `json:"userNSRoot,omitempty"` + + // ExtensionStageHooks holds hooks which will be executed by libpod + // and not delegated to the OCI runtime. + ExtensionStageHooks map[string][]spec.Hook `json:"extensionStageHooks,omitempty"` } // ExecSession contains information on an active exec session -- cgit v1.2.3-54-g00ecf