File tree Expand file tree Collapse file tree 3 files changed +621
-1
lines changed
cmd/nvidia-ctk/runtime/configure
pkg/config/engine/containerd Expand file tree Collapse file tree 3 files changed +621
-1
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ func (m command) validateFlags(config *config) error {
250250 }
251251 }
252252
253- if config .dropInConfigPath == "" && ( config . runtime == "containerd" || config . runtime == "crio" ) {
253+ if config .dropInConfigPath == "" {
254254 switch config .runtime {
255255 case "containerd" :
256256 config .dropInConfigPath = defaultContainerdDropInConfigFilePath
@@ -263,6 +263,10 @@ func (m command) validateFlags(config *config) error {
263263 return fmt .Errorf ("the drop-in-config path %q is not an absolute path" , config .dropInConfigPath )
264264 }
265265
266+ if config .dropInConfigPath != "" && config .runtime == "docker" {
267+ return fmt .Errorf ("runtime %v does not support drop-in configs" , config .runtime )
268+ }
269+
266270 return nil
267271}
268272
You can’t perform that action at this time.
0 commit comments