go-container/specs/cmd/vm.md

763 B

vm

Import: dappco.re/go/core/container/cmd/vm Files: 4

Types

Functions

Exported Functions

  • AddVMCommands(root *cli.Command): Registers the vm command tree and its run, ps, stop, logs, exec, and templates subcommands on the parent CLI.
  • ParseVarFlags(varFlags []string) map[string]string: Parses repeated KEY=VALUE --var flags, trims whitespace, and strips matching single or double quotes around values.
  • RunFromTemplate(templateName string, vars map[string]string, runOpts container.RunOptions) error: Applies a named LinuxKit template, writes it into a temporary build directory, runs linuxkit build --format iso-bios, locates the resulting image file, and starts it through container.NewLinuxKitManager.