mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
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>
This commit is contained in:
@ -331,6 +331,9 @@ func (c *CreateConfig) createExitCommand() []string {
|
|||||||
"--cgroup-manager", config.CgroupManager,
|
"--cgroup-manager", config.CgroupManager,
|
||||||
"--tmpdir", config.TmpDir,
|
"--tmpdir", config.TmpDir,
|
||||||
}
|
}
|
||||||
|
if config.OCIRuntime != "" {
|
||||||
|
command = append(command, []string{"--runtime", config.OCIRuntime}...)
|
||||||
|
}
|
||||||
if config.StorageConfig.GraphDriverName != "" {
|
if config.StorageConfig.GraphDriverName != "" {
|
||||||
command = append(command, []string{"--storage-driver", config.StorageConfig.GraphDriverName}...)
|
command = append(command, []string{"--storage-driver", config.StorageConfig.GraphDriverName}...)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user