← 返回命令列表

Linux command

pct-reboot 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Reboot

pct reboot 100

Example

pct reboot 100 --timeout 60

说明

pct reboot shuts down and restarts a Proxmox LXC container. The command performs a clean reboot by first requesting the container to shut down gracefully, then starting it again. If the container does not stop within the timeout period, the operation fails.

参数

vmid
The numeric ID of the container (100 or higher)
--timeout _seconds_
Wait this many seconds for the shutdown before failing. The default is 60 seconds.

FAQ

What is the pct-reboot command used for?

pct reboot shuts down and restarts a Proxmox LXC container. The command performs a clean reboot by first requesting the container to shut down gracefully, then starting it again. If the container does not stop within the timeout period, the operation fails.

How do I run a basic pct-reboot example?

Run `pct reboot 100` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does vmid do in pct-reboot?

The numeric ID of the container (100 or higher)