pct-pull
copy a file from a Proxmox LXC container to the host
TLDR
SYNOPSIS
pct pull vmid path destination [OPTIONS]
DESCRIPTION
pct pull copies a single file from a Proxmox VE LXC container to the host filesystem. It is the inverse of pct push: the source path is inside the container, and the destination is on the node where pct runs.This is useful for retrieving logs, configs, or build artifacts without mounting the container root or opening an interactive shell. Ownership and mode of the host-side copy can be set with --user, --group, and --perms.
PARAMETERS
vmid
The numeric ID of the container (100–999999999)path
Path to a file inside the container to pulldestination
Destination path on the local (host) system--user name|id
Owner user name or id for the written host file--group name|id
Owner group name or id for the written host file--perms mode
File permissions (octal by default; prefix with 0x for hexadecimal)
CAVEATS
Copies one file at a time (not recursive directories). The container must be accessible on the local node; network/remote pull is not a separate mode. Paths are evaluated in the container's filesystem namespace. On unprivileged containers, ensure the host process has rights to read the guest path via the usual LXC file-copy path.
HISTORY
pct pull is part of the Proxmox VE pct (Proxmox Container Toolkit) for managing LXC containers.
