Documentation
¶
Overview ¶
Package vm provides LinuxKit virtual machine management commands.
Commands:
- run: Run a VM from image (.iso, .qcow2, .vmdk, .raw) or template
- ps: List running VMs
- stop: Stop a running VM
- logs: View VM logs
- exec: Execute command in VM via SSH
- templates: Manage LinuxKit templates (list, build)
Uses qemu or hyperkit depending on system availability. Templates are built from YAML definitions and can include variables.
Package vm provides LinuxKit VM management commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVMCommands ¶
AddVMCommands adds container-related commands under 'vm' to the CLI.
func ParseVarFlags ¶
ParseVarFlags parses --var flags into a map. Format: --var KEY=VALUE or --var KEY="VALUE"
func RunFromTemplate ¶
func RunFromTemplate(templateName string, vars map[string]string, runOpts container.RunOptions) error
RunFromTemplate builds and runs a LinuxKit image from a template.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.