Skip to content

labops lxc

Manage Proxmox LXC containers from Config.

Usage:

$ labops lxc [OPTIONS] COMMAND [ARGS]...

Options:

  • --help: Show this message and exit.

Commands:

  • list: List all LXCs defined in the...
  • update: Run the package manager...

labops lxc list

List all LXCs defined in the config, grouped by Proxmox host.

Reads the config only — nothing is contacted, so this works offline and against containers that are stopped.

Usage:

$ labops lxc list [OPTIONS]

Options:

  • --help: Show this message and exit.

labops lxc update

Run the package manager upgrade on a target LXC or all LXCs.

Runs from the Proxmox host via pct — the container needs no sshd, only a vmid and a reachable parent. Containers with os: unmanaged are skipped, and software installed outside the package manager (Pi-hole) is not covered; see dns upgrade. Respects global --dry-run and --verbose.

Examples:

labops lxc update pihole      # by name
labops lxc update 10.0.0.5    # by IP
labops lxc update --all

Usage:

$ labops lxc update [OPTIONS] [target]

Arguments:

  • target: LXC name or IP address.

Options:

  • --all: Update all LXCs.
  • --help: Show this message and exit.