2026-01-29 15:46:24 +00:00
|
|
|
# core vm templates
|
2026-01-29 09:44:28 +00:00
|
|
|
|
|
|
|
|
Manage LinuxKit templates for container images.
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:46:24 +00:00
|
|
|
core vm templates [command]
|
2026-01-29 09:44:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
|
|
|
|
|
| Command | Description |
|
|
|
|
|
|---------|-------------|
|
|
|
|
|
| `list` | List available templates |
|
|
|
|
|
| `show` | Show template details |
|
2026-01-29 15:51:51 +00:00
|
|
|
| `vars` | Show template variables |
|
2026-01-29 09:44:28 +00:00
|
|
|
|
|
|
|
|
## templates list
|
|
|
|
|
|
|
|
|
|
List all available LinuxKit templates.
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:46:24 +00:00
|
|
|
core vm templates list
|
2026-01-29 09:44:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Output
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
Available Templates:
|
|
|
|
|
|
|
|
|
|
core-dev
|
|
|
|
|
Full development environment with 100+ tools
|
|
|
|
|
Platforms: linux/amd64, linux/arm64
|
|
|
|
|
|
|
|
|
|
server-php
|
|
|
|
|
FrankenPHP production server
|
|
|
|
|
Platforms: linux/amd64, linux/arm64
|
|
|
|
|
|
|
|
|
|
edge-node
|
|
|
|
|
Minimal edge deployment
|
|
|
|
|
Platforms: linux/amd64, linux/arm64
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## templates show
|
|
|
|
|
|
|
|
|
|
Show details of a specific template.
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:46:24 +00:00
|
|
|
core vm templates show <name>
|
2026-01-29 09:44:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:46:24 +00:00
|
|
|
core vm templates show core-dev
|
2026-01-29 09:44:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Output:
|
|
|
|
|
```
|
|
|
|
|
Template: core-dev
|
|
|
|
|
|
|
|
|
|
Description: Full development environment with 100+ tools
|
|
|
|
|
|
|
|
|
|
Platforms:
|
|
|
|
|
- linux/amd64
|
|
|
|
|
- linux/arm64
|
|
|
|
|
|
|
|
|
|
Formats:
|
|
|
|
|
- iso
|
|
|
|
|
- qcow2
|
|
|
|
|
|
|
|
|
|
Services:
|
|
|
|
|
- sshd
|
|
|
|
|
- docker
|
|
|
|
|
- frankenphp
|
|
|
|
|
|
|
|
|
|
Size: ~1.8GB
|
|
|
|
|
```
|
|
|
|
|
|
2026-01-29 15:58:00 +00:00
|
|
|
## templates vars
|
|
|
|
|
|
|
|
|
|
Show variables defined by a template.
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
core vm templates vars <name>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Example
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
core vm templates vars core-dev
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Output:
|
|
|
|
|
```
|
|
|
|
|
Variables for core-dev:
|
|
|
|
|
SSH_KEY (required) SSH public key
|
|
|
|
|
MEMORY (optional) Memory in MB (default: 4096)
|
|
|
|
|
CPUS (optional) CPU count (default: 4)
|
|
|
|
|
```
|
|
|
|
|
|
2026-01-29 09:44:28 +00:00
|
|
|
## Template Locations
|
|
|
|
|
|
|
|
|
|
Templates are searched in order:
|
|
|
|
|
|
|
|
|
|
1. `.core/linuxkit/` - Project-specific
|
|
|
|
|
2. `~/.core/templates/` - User templates
|
|
|
|
|
3. Built-in templates
|
|
|
|
|
|
|
|
|
|
## Creating Templates
|
|
|
|
|
|
2026-01-29 19:19:21 +00:00
|
|
|
Create a LinuxKit YAML in `.core/linuxkit/`. See [Template Format](example.md#template-format) for examples.
|
2026-01-29 09:44:28 +00:00
|
|
|
|
|
|
|
|
Run with:
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-29 15:46:24 +00:00
|
|
|
core vm run --template myserver
|
2026-01-29 09:44:28 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## See Also
|
|
|
|
|
|
2026-01-29 15:18:13 +00:00
|
|
|
- [vm command](../) - Run LinuxKit images
|
|
|
|
|
- [build command](../../build/) - Build LinuxKit images
|