From 1a8391b914f3392d44b01554e5df862396e628bc Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 7 Feb 2019 14:59:56 +0100 Subject: cleanup: use the correct runtime make sure "containers cleanup" uses the correct runtime if it was overriden. Signed-off-by: Giuseppe Scrivano --- pkg/spec/createconfig.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg') 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}...) } -- cgit v1.2.3-54-g00ecf