LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pct-exec

launches a command inside a specified Proxmox LXC container

TLDR

Execute command in container
$ pct exec 100 command
copy
Open bash shell
$ pct exec 100 bash
copy
Pass arguments
$ pct exec 100 -- command arguments
copy

SYNOPSIS

pct exec vmid [--] command [arguments...]

DESCRIPTION

pct exec launches a command inside a specified Proxmox LXC container. It provides direct command execution without needing to enter the container interactively.

PARAMETERS

VMID

The numeric ID of the LXC container (100–999999999).
COMMAND
The command and any arguments to execute inside the container.
--
Separator that stops `pct` from interpreting subsequent flags, so they are passed through to the command.

CAVEATS

The container must be running to execute commands. The command runs as root inside the container, regardless of the host user invoking `pct exec`. There is no TTY allocation by default — for interactive shells use pct enter instead. The command's exit status is returned to the caller, but pre-execution failures (container not running, etc.) yield Proxmox-specific error codes.

HISTORY

pct exec is part of the Proxmox VE virtualization platform for managing LXC containers.

SEE ALSO

pct(1), pct-enter(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid