LinuxCommandLibrary

pct

TLDR

List containers

$ pct list
copy
Start/Stop container
$ pct start 100
copy
Enter container shell
$ pct enter 100
copy
Create container
$ pct create 100 local:vztmpl/distro.tar.zst --rootfs local-lvm:4
copy
Resize disk
$ pct resize 100 rootfs 20G
copy
Show configuration
$ pct config 100
copy
Snapshot container
$ pct snapshot 100 my-snapshot --description "description"
copy
Destroy container
$ pct destroy 100 --purge
copy

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 containers
create vmid template
Create a new container from template
config vmid
Display container configuration
set vmid
Modify container configuration
start vmid
Start a container
stop vmid
Stop a container
enter vmid
Access container shell
exec vmid command
Execute command in container
snapshot vmid name
Create a snapshot
destroy vmid
Remove a container
resize 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)

> TERMINAL_GEAR

Curated for the Linux community

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99
BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

BOSGAME Mini PC N95, Intel 12th Mini Computers| 16GB DDR4 RAM| 512GB M.2 2280 SSD| 4K 60HZ Triple Displays by Dual HDMI+Type-C, 6W TDP Quiet Mini PC, WIFI5, BT 5.0 Office

$239.99
New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

New Raspberry Pi 3 Model B+ Board Raspberry PI 3B+

$54.00
nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

nuphy Air75 V2 Portable 75% Mechanical Keyboard,Wireless Keyboard

$129.95
GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

GMKtec Gaming PC, K11 AMD Ryzen 9 8945HS, 32GB DDR5 RAM 1TB Mini PC Desktop Computer, Oculink, Dual NIC 2.5GbE LAN, HDMI/DisplayPort/USB4*2

$739.99