summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-02-07 14:59:56 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-02-07 14:59:59 +0100
commit1a8391b914f3392d44b01554e5df862396e628bc (patch)
tree32c824795811c1001dc3ed0e895d9c58b364e3e6
parentf250745fe07fd5e9487b651b4071464c83196738 (diff)
downloadpodman-1a8391b914f3392d44b01554e5df862396e628bc.tar.gz
podman-1a8391b914f3392d44b01554e5df862396e628bc.tar.bz2
podman-1a8391b914f3392d44b01554e5df862396e628bc.zip
cleanup: use the correct runtime
make sure "containers cleanup" uses the correct runtime if it was overriden. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/spec/createconfig.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go
index 344f4afb9..f6c77d61c 100644
--- a/pkg/spec/createconfig.go
+++ b/pkg/spec/createconfig.go
@@ -331,6 +331,9 @@ func (c *CreateConfig) createExitCommand() []string {
"--cgroup-manager", config.CgroupManager,
"--tmpdir", config.TmpDir,
}
+ if config.OCIRuntime != "" {
+ command = append(command, []string{"--runtime", config.OCIRuntime}...)
+ }
if config.StorageConfig.GraphDriverName != "" {
command = append(command, []string{"--storage-driver", config.StorageConfig.GraphDriverName}...)
}