HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pct exec — Launch a command inside a specified container. More information: <https://pve.proxmox.com/pve-docs/p

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandlaunchclipct execinsidespecifiedcontainer
linux

Problem

How to use the pct exec command: Launch a command inside a specified container. More information: <https://pve.proxmox.com/pve-docs/pct.1.html#cli_pct_exec>.

Solution

pct exec — Launch a command inside a specified container. More information: <https://pve.proxmox.com/pve-docs/pct.1.html#cli_pct_exec>.

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}}

Code Snippets

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}}

Context

tldr-pages: linux/pct exec

Revisions (0)

No revisions yet.