diff --git a/src/runtime/containerd-shim-v2/create.go b/src/runtime/containerd-shim-v2/create.go index 01949908f8..e981039f93 100644 --- a/src/runtime/containerd-shim-v2/create.go +++ b/src/runtime/containerd-shim-v2/create.go @@ -148,6 +148,9 @@ func loadSpec(r *taskAPI.CreateTaskRequest) (*specs.Spec, string, error) { // 2. shimv2 create task option // 3. environment func loadRuntimeConfig(s *service, r *taskAPI.CreateTaskRequest, anno map[string]string) (*oci.RuntimeConfig, error) { + if s.config != nil { + return s.config, nil + } configPath := oci.GetSandboxConfigPath(anno) if configPath == "" && r.Options != nil { v, err := typeurl.UnmarshalAny(r.Options)