Class: Pvectl::Commands::CreateContainer

Inherits:
Object
  • Object
show all
Includes:
CreateResourceCommand, SharedConfigParsers
Defined in:
lib/pvectl/commands/create_container.rb

Overview

Handler for the ‘pvectl create container` command.

Includes CreateResourceCommand for shared workflow and overrides template methods with container-specific behavior.

Examples:

Flag-based creation

pvectl create container --hostname web-ct --ostemplate local:vztmpl/debian-12.tar.zst \
  --rootfs storage=local-lvm,size=8G --cores 2 --memory 2048

Method Summary

Methods included from SharedConfigParsers

#build_ct_config_params, #build_vm_config_params, #parse_ct_mountpoints, #parse_ct_nets, #parse_vm_cloud_init, #parse_vm_disks, #parse_vm_nets

Methods included from CreateResourceCommand

#execute, included, #initialize