{"record":{"id":"f00b59648344d706","repo":"abiosoft/colima","slug":"error-reinstalling-docker-model-runner-w","errorCode":null,"errorMessage":"error reinstalling Docker Model Runner: %w","messagePattern":"error reinstalling Docker Model Runner: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"model/docker.go","lineNumber":120,"sourceCode":"\t\treturn nil, fmt.Errorf(\"error inspecting model %q: %w\", modelName, err)\n\t}\n\n\tvar info DockerModelInfo\n\tif err := json.Unmarshal([]byte(strings.TrimSpace(output)), &info); err != nil {\n\t\treturn nil, fmt.Errorf(\"error parsing model info: %w\", err)\n\t}\n\n\treturn &info, nil\n}\n\n// SetupOrUpdateDocker reinstalls Docker Model Runner in the VM.\nfunc SetupOrUpdateDocker() error {\n\tguest := lima.New(host.New())\n\n\tlog.Println(\"reinstalling Docker Model Runner...\")\n\n\tif err := guest.RunInteractive(\"docker\", \"model\", \"reinstall-runner\"); err != nil {\n\t\treturn fmt.Errorf(\"error reinstalling Docker Model Runner: %w\", err)\n\t}\n\n\tlog.Println(\"Docker Model Runner reinstalled\")\n\n\t// Print installed version\n\tif version := GetDockerModelVersion(); version != \"\" {\n\t\tfmt.Println(\"Docker Model Runner\")\n\t\tfmt.Printf(\"version: %s\", version)\n\t\tfmt.Println()\n\t}\n\n\treturn nil\n}\n\n// GetDockerModelVersion returns the Docker Model Runner version in the VM.\n// Returns empty string if version cannot be determined.\nfunc GetDockerModelVersion() string {\n\tguest := lima.New(host.New())","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/abiosoft/colima/blob/c3a5f9184d83a197184f897a9f07eb3c01b3bc88/model/docker.go#L102-L138","documentation":"SetupOrUpdateDocker runs guest.RunInteractive(\"docker\",\"model\",\"reinstall-runner\") in the VM; a non-zero exit (including user Ctrl-C of the interactive install) yields this error. The reinstall downloads and redeploys the docker-model-runner container, so failures are usually download (network/registry), disk space, or unsupported docker CLI.","triggerScenarios":"Offline or proxied network so the runner image cannot be pulled; VM disk full; docker in the VM too old to have 'model reinstall-runner'; aborting the interactive prompt; registry rate limits.","commonSituations":"Corporate proxies/firewalls blocking the registry; small colima disk after pulling several models; docker installed via an old colima runtime; flaky connections during setup.","solutions":["Run it manually to see the failure: colima ssh -- docker model reinstall-runner","Check network/proxy from inside the VM (docker pull hello-world) and configure HTTP_PROXY/DNS accordingly","Free disk space (docker system prune, remove unused models) and retry","Update Docker/colima so the 'docker model' subcommand exists, then re-run setup"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"if err := guest.RunInteractive(\"docker\", \"model\", \"reinstall-runner\"); err != nil {\n    return fmt.Errorf(\"error reinstalling Docker Model Runner: %w — run 'colima ssh -- docker model reinstall-runner' for details\", err)\n}","preventionTips":["Check registry reachability from the VM before setup (docker pull hello-world)","Keep VM disk headroom for the runner image","Run reinstall-runner manually once in the VM to see interactive progress before automating"],"tags":["docker","model-runner","setup","network"],"backgroundTag":null,"analyzedSha":"c3a5f9184d83a197184f897a9f07eb3c01b3bc88","analyzedAt":"2026-08-15T18:58:08.334Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}