diff --git a/tools/container/containerd/config_v1.go b/tools/container/containerd/config_v1.go index f3121c18..e744cd7f 100644 --- a/tools/container/containerd/config_v1.go +++ b/tools/container/containerd/config_v1.go @@ -68,6 +68,7 @@ func (config *configV1) Update(o *options) error { log.Warnf("Setting default_runtime is deprecated") defaultRuntimePath := append(config.containerdPath(), "default_runtime") config.initRuntime(defaultRuntimePath, o.runtimeType, "Runtime", runtimeBinary) + config.initRuntime(defaultRuntimePath, o.runtimeType, "BinaryName", runtimeBinary) } return nil } diff --git a/tools/container/containerd/config_v1_test.go b/tools/container/containerd/config_v1_test.go index 0b69f5aa..993d4f1d 100644 --- a/tools/container/containerd/config_v1_test.go +++ b/tools/container/containerd/config_v1_test.go @@ -336,7 +336,8 @@ func defaultRuntimeV1(binary string) map[string]interface{} { "runtime_engine": "", "privileged_without_host_devices": false, "options": map[string]interface{}{ - "Runtime": binary, + "BinaryName": binary, + "Runtime": binary, }, } }