Post

Proxmox CLI "Container Management"

Proxmox CLI "Container Management"

List Containers

1
pct list

Create or Restore a Container

1
pct create <vmid> <ostemplate> [OPTIONS]

Start the Container

1
pct start <vmid> [OPTIONS]

Create a Container Clone/Copy

1
pct clone <vmid> <newid> [OPTIONS]

Suspend the Container - This is Experimental

1
pct suspend <vmid>

Resume the Container

1
pct resume <vmid>

Stop the Container

This will abruptly stop all processes running in the container.

1
pct stop <vmid> [OPTIONS]

Shutdown the Container

This will trigger a clean shutdown of the container, see lxc-stop(1) for details

1
pct shutdown <vmid> [OPTIONS]

Destroy the Container (Also Delete All Uses Files)

1
pct destroy <vmid> [OPTIONS]

Show CT Status

1
pct status <vmid> [OPTIONS]

Migrate the Container to Another Node. Creates a New Bigration Task

1
pct migrate <vmid> <target> [OPTIONS]

Get Container Configuration

1
pct config <vmid> [OPTIONS]
1
pct cpusets

Get Container Configuration, Including Pending Changes

1
pct pending <vmid>

Reboot the Container by Shutting it Down, and Starting it Again. Applies Pending Changes.

1
pct reboot <vmid> [OPTIONS]

Create or Restore a Container

1
pct restore <vmid> <ostemplate> [OPTIONS]

Set Container Options

1
pct set <vmid> [OPTIONS]

Create a Template.

1
pct template <vmid>

Unlock the VM.

1
pct unlock <vmid>
This post is licensed under CC BY 4.0 by the author.