diff --git a/pkg/spec/createconfig.go b/pkg/spec/createconfig.go index 344f4afb9a..f6c77d61cf 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}...) }