2025-09-14 18:48:49 -06:00
|
|
|
# pct exec
|
|
|
|
|
|
|
|
|
|
> Launch a command inside a specified container.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://pve.proxmox.com/pve-docs/pct.1.html#cli_pct_exec>.
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
- Launch a command in a container:
|
|
|
|
|
|
|
|
|
|
`pct {{[ex|exec]}} {{100}} {{command}}`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Open a Bash shell in a container:
|
2025-09-14 18:48:49 -06:00
|
|
|
|
|
|
|
|
`pct {{[ex|exec]}} {{100}} bash`
|
|
|
|
|
|
|
|
|
|
- Pass arguments to the command:
|
|
|
|
|
|
|
|
|
|
`pct {{[ex|exec]}} {{100}} -- {{command}} {{arguments}}`
|