Skip to content

ai: add docker model runner.#1513

Merged
abiosoft merged 1 commit intomainfrom
docker-model-runner
Feb 20, 2026
Merged

ai: add docker model runner.#1513
abiosoft merged 1 commit intomainfrom
docker-model-runner

Conversation

@abiosoft
Copy link
Owner

@abiosoft abiosoft commented Feb 20, 2026

Generated by Copilot

This pull request introduces a major refactor to the AI model management commands, adding support for selecting between multiple model runners (Docker and Ramalama), streamlining runner setup and provisioning, and improving configuration handling. The changes also update command documentation and argument parsing, and unify model runner logic for easier extensibility.

Model runner selection and configuration:

  • Added support for selecting the AI model runner (docker, ramalama) via the --runner flag, instance config (modelRunner), and default value. The runner is now used throughout model commands for provisioning, argument building, and serving. [1] [2] [3]
  • Updated the start command to accept a --model-runner flag, and propagate this value into instance configuration. [1] [2]

Command logic and extensibility:

  • Refactored the model command to use runner-specific methods for validation, provisioning, argument building, and serving, replacing hardcoded Ramalama logic with a unified runner interface.
  • Added a new model serve command for serving models via a web UI and OpenAI-compatible API, using the selected runner.

Documentation and minor improvements:

  • Improved command documentation and examples to reflect runner selection and usage, and updated help text for clarity.
  • Updated version reporting to use the new runner interface for fetching Ramalama version. [1] [2]

Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
@abiosoft abiosoft force-pushed the docker-model-runner branch from c4a2de5 to ceaae92 Compare February 20, 2026 14:10
@abiosoft abiosoft changed the title ai: make docker the default model runner. ai: add docker model runner. Feb 20, 2026
@abiosoft abiosoft merged commit cb1aa93 into main Feb 20, 2026
15 checks passed
@abiosoft abiosoft deleted the docker-model-runner branch February 20, 2026 14:32
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 23, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [abiosoft/colima](https://github.com/abiosoft/colima) | patch | `v0.10.0` → `v0.10.1` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>abiosoft/colima (abiosoft/colima)</summary>

### [`v0.10.1`](https://github.com/abiosoft/colima/releases/tag/v0.10.1)

[Compare Source](abiosoft/colima@v0.10.0...v0.10.1)

#### Highlights

This is an incremental release with support for [Docker Model Runner](https://docs.docker.com/model-runner/) and improvements to the AI functionality introduced in [v0.10.0](https://github.com/abiosoft/colima/releases/tag/v0.10.0).

##### Docker Model Runner

Colima now supports Docker Model Runner as an AI model runner backend.
Docker Model Runner is now the **default** due to its simpler requirements. However, Ramalama can still be used.

```sh

# run a model (uses docker runner by default)
colima model run gemma3

# serve a model, chat interface available at localhost:8080
colima model serve gemma3

# explicitly specify the runner
colima model run gemma3 --runner docker
colima model run gemma3 --runner ramalama

# set the runner at start time
colima start --model-runner ramalama
```

The runner can be configured via:

- `--runner` flag on `colima model` commands
- `--model-runner` flag at `colima start`
- `modelRunner` in the configuration file

#### Other Updates

- The `DOCKER_CONFIG` environment variable is now respected.

#### Commits

- chore: propose fix a typo by [@&#8203;jeis4wpi](https://github.com/jeis4wpi) in [#&#8203;1506](abiosoft/colima#1506)
- docs: add install instructions for krunkit by [@&#8203;alanpmullane](https://github.com/alanpmullane) in [#&#8203;1511](abiosoft/colima#1511)
- docker: respect DOCKER\_CONFIG by [@&#8203;utkarshgupta137](https://github.com/utkarshgupta137) in [#&#8203;1512](abiosoft/colima#1512)
- ai: add docker model runner. by [@&#8203;abiosoft](https://github.com/abiosoft) in [#&#8203;1513](abiosoft/colima#1513)
- ai: choose alternate available ports for serving API/webui by [@&#8203;abiosoft](https://github.com/abiosoft) in [#&#8203;1515](abiosoft/colima#1515)
- ai: refactor model runners by [@&#8203;abiosoft](https://github.com/abiosoft) in [#&#8203;1516](abiosoft/colima#1516)
- core: update disk images by [@&#8203;abiosoft](https://github.com/abiosoft) in [#&#8203;1517](abiosoft/colima#1517)

#### New Contributors

- [@&#8203;jeis4wpi](https://github.com/jeis4wpi) made their first contribution in [#&#8203;1506](abiosoft/colima#1506)
- [@&#8203;alanpmullane](https://github.com/alanpmullane) made their first contribution in [#&#8203;1511](abiosoft/colima#1511)
- [@&#8203;utkarshgupta137](https://github.com/utkarshgupta137) made their first contribution in [#&#8203;1512](abiosoft/colima#1512)

**Full Changelog**: <abiosoft/colima@v0.10.0...v0.10.1>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNi40IiwidXBkYXRlZEluVmVyIjoiNDMuMjYuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6OnBhdGNoIl19-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant