pct
LXC container management tool for Proxmox VE
TLDR
List containers
$ pct list
Start/Stop container$ pct start 100
Enter container shell$ pct enter 100
Create container$ pct create 100 local:vztmpl/distro.tar.zst --rootfs local-lvm:4
Resize disk$ pct resize 100 rootfs 20G
Show configuration$ pct config 100
Snapshot container$ pct snapshot 100 my-snapshot --description "description"
Destroy container$ pct destroy 100 --purge
SYNOPSIS
pct command [OPTIONS] [vmid]
DESCRIPTION
pct is the LXC container management tool for Proxmox VE. It provides a complete command-line interface for creating, configuring, starting, stopping, and managing Linux containers.
PARAMETERS
list
List all containerscreate vmid template
Create a new container from templateconfig vmid
Display container configurationset vmid
Modify container configurationstart vmid
Start a containerstop vmid
Stop a containerenter vmid
Access container shellexec vmid command
Execute command in containersnapshot vmid name
Create a snapshotdestroy vmid
Remove a containerresize vmid disk size
Resize container disk--purge
Remove all related resources when destroying
CAVEATS
Container IDs must be unique across the Proxmox cluster. Some operations require the container to be stopped. Nesting must be enabled for containers running Docker or LXC inside.
HISTORY
pct is part of the Proxmox VE virtualization platform, providing lightweight containerization using LXC technology.
SEE ALSO
pct-create(1), pct-exec(1), qm(1)
