commands.sh

pct exec

linux

Launch a command inside a specified container.

More info →

Options (1)

boolean

Launch a command in a container

Example: pct {{[ex|exec]}} {{100}} {{command}}

Examples (3)

Launch a command in a container

pct [ex|exec] 100 command

Open a Bash shell in a container

pct [ex|exec] 100 bash

Pass arguments to the command

pct [ex|exec] 100 -- command arguments
made by @shridhargupta | data from tldr-pages