{"record":{"id":"72580779b6ec0bd8","repo":"abiosoft/colima","slug":"colima-model-requires-docker-runtime-current-ru","errorCode":null,"errorMessage":"'colima model' requires docker runtime, current runtime is %s\nStart colima with: colima start --runtime docker --vm-type krunkit","messagePattern":"'colima model' requires docker runtime, current runtime is (.+?)\nStart colima with: colima start --runtime docker --vm-type krunkit","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"model/runner.go","lineNumber":96,"sourceCode":"\tdefault:\n\t\treturn nil, fmt.Errorf(\"unknown runner type: %s (valid options: docker, ramalama)\", runnerType)\n\t}\n}\n\n// validateCommonPrerequisites checks prerequisites common to all runners.\nfunc validateCommonPrerequisites(a app.App) error {\n\t// VM must be running\n\tif !a.Active() {\n\t\treturn fmt.Errorf(\"%s is not running\", config.CurrentProfile().DisplayName)\n\t}\n\n\t// check runtime is docker\n\tr, err := a.Runtime()\n\tif err != nil {\n\t\treturn err\n\t}\n\tif r != docker.Name {\n\t\treturn fmt.Errorf(\"'colima model' requires docker runtime, current runtime is %s\\n\"+\n\t\t\t\"Start colima with: colima start --runtime docker --vm-type krunkit\", r)\n\t}\n\n\t// check VM type is krunkit (required for GPU access)\n\tconf, err := configmanager.LoadInstance()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error loading instance config: %w\", err)\n\t}\n\tif conf.VMType != limaconfig.Krunkit {\n\t\treturn fmt.Errorf(\"'colima model' requires krunkit VM type for GPU access, current VM type is %s\\n\"+\n\t\t\t\"Start colima with: colima start --runtime docker --vm-type krunkit\", conf.VMType)\n\t}\n\n\t// check krunkit binary exists on host\n\tif err := util.AssertKrunkit(); err != nil {\n\t\treturn err\n\t}\n","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/abiosoft/colima/blob/c3a5f9184d83a197184f897a9f07eb3c01b3bc88/model/runner.go#L78-L114","documentation":"colima model requires the docker runtime because both runners ride on docker containers; a.Runtime() returned a different runtime (typically containerd) and the message embeds it plus the exact restart command that remedies it.","triggerScenarios":"The profile was started with --runtime containerd (or has containerd stored as its configured runtime), then any colima model subcommand is invoked.","commonSituations":"Users who chose containerd for Kubernetes workloads; older profiles created before model support with non-docker defaults.","solutions":["Restart with docker as the message instructs: colima stop && colima start --runtime docker --vm-type krunkit","Confirm the current runtime beforehand: colima status","If containerd is needed for other work, run a dedicated colima profile for model workloads"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// check runtime before entering the model command path\nr, err := a.Runtime()\nif err != nil {\n\treturn err\n}\nif r != docker.Name {\n\treturn fmt.Errorf(\"restart required: colima start --runtime docker --vm-type krunkit\")\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Standardize model-capable profiles on --runtime docker --vm-type krunkit from creation","Check colima status output for the runtime before scripting model commands"],"tags":["runtime","docker","containerd","configuration","go"],"backgroundTag":null,"analyzedSha":"c3a5f9184d83a197184f897a9f07eb3c01b3bc88","analyzedAt":"2026-08-15T18:58:08.334Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}