← All Scanning Guides
Prerequisites
1

Push the collector into the container

pct push copies a file from the host directly into the container filesystem. No SSH, no mount tricks.
Proxmox Host
CTID=101

pct start "$CTID" 2>/dev/null || true

pct exec "$CTID" -- mkdir -p /opt/versiongopher /var/tmp/versiongopher

pct push "$CTID" ./version_gopher-linux-x64 \
  /opt/versiongopher/version_gopher \
  --perms 0755 --user 0 --group 0
2

Run the scan

Proxmox Host
pct exec "$CTID" -- /bin/sh -lc \
  "/opt/versiongopher/version_gopher /usr/bin \
   -o /var/tmp/versiongopher/scan"
3

Pull results back to the host

pct pull copies a file from the container back to the host. No jq parsing needed — it's a direct file copy.
Proxmox Host
pct pull "$CTID" \
  /var/tmp/versiongopher/scan.json \
  "/tmp/ct-${CTID}-scan.json"
Why LXC is the cleanest workflow: Unlike QEMU VMs, LXC containers share the host kernel and don't need a guest agent. pct push/pull works on any running container immediately — no agent install, no stdin size limits, no JSON output wrapping.