Merge pull request #370 from rhatdan/crun

Switch default runtime from runc to crun
This commit is contained in:
OpenShift Merge Robot 2020-12-04 16:31:22 -05:00 committed by GitHub
commit a0ff81965b
2 changed files with 2 additions and 6 deletions

View File

@ -391,7 +391,7 @@ default_sysctls = [
# Default OCI runtime # Default OCI runtime
# #
# runtime = "runc" # runtime = "crun"
# List of the OCI runtimes that support --format=json. When json is supported # List of the OCI runtimes that support --format=json. When json is supported
# engine will use it for reporting nicer errors. # engine will use it for reporting nicer errors.

View File

@ -242,11 +242,7 @@ func defaultConfigFromMemory() (*EngineConfig, error) {
c.ImageDefaultTransport = _defaultTransport c.ImageDefaultTransport = _defaultTransport
c.StateType = BoltDBStateStore c.StateType = BoltDBStateStore
c.OCIRuntime = "runc"
// If we're running on cgroupv2 v2, default to using crun.
if cgroup2, _ := cgroupv2.Enabled(); cgroup2 {
c.OCIRuntime = "crun" c.OCIRuntime = "crun"
}
c.ImageBuildFormat = "oci" c.ImageBuildFormat = "oci"
c.CgroupManager = defaultCgroupManager() c.CgroupManager = defaultCgroupManager()