Linux command
pct-enter 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Enter an interactive shell in a container
pct enter [VMID]
Run a single command inside a container
pct exec [VMID] -- [ls -la]
说明
pct enter opens an interactive shell session inside a running Proxmox LXC container. It provides direct console access without SSH, similar to lxc-attach or docker exec. For running non-interactive single commands, use pct exec instead.
参数
- vmid
- Numeric container ID (e.g., 100).
FAQ
What is the pct-enter command used for?
pct enter opens an interactive shell session inside a running Proxmox LXC container. It provides direct console access without SSH, similar to lxc-attach or docker exec. For running non-interactive single commands, use pct exec instead.
How do I run a basic pct-enter example?
Run `pct enter [VMID]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does vmid do in pct-enter?
Numeric container ID (e.g., 100).