Proxmox vs Docker: Different Layers, and How to Use Both

Updated 7 min read By the Self-Hosting HQ Editorial Team
Quick answerProxmox VE and Docker work at different layers. Proxmox is a hypervisor that runs whole virtual machines and LXC system containers on bare metal; Docker runs individual application containers inside an operating system. Most home labs use both: Proxmox on the hardware, and Docker with Compose inside a Linux VM. Proxmox's own FAQ advises against installing Docker directly on the Proxmox host.

Searching Proxmox vs Docker suggests you have to pick one, but they aren’t competitors. Proxmox VE is a hypervisor: it owns the hardware and runs full virtual machines and LXC system containers. Docker is an application container engine: it runs inside an operating system and packages single apps with their dependencies. The real decision is how to stack them, and where Docker should run if you use Proxmox.

This guide explains the layers, compares LXC with Docker containers, and gives you three practical layouts. It reflects Proxmox VE 9.3 (released November 25, 2026, with LXC 7.0 and QEMU 11.1) and Docker’s documentation as of December 2026.

If you are weighing an orchestrator rather than plain containers, see Proxmox vs Kubernetes.

Two different layers

Think of a home server as a stack:

Layer What runs there Examples
Hardware CPU, RAM, disks, network Mini PC, old desktop, rack server
Hypervisor / host OS Something that owns the hardware Proxmox VE, or a plain Linux install
Guests Whole operating systems VMs (any OS), LXC system containers (Linux)
Applications Individual services Docker containers managed with Compose

Proxmox lives on the second and third rows. It installs on bare metal and gives you a web interface to create VMs (via KVM/QEMU) and LXC containers. Docker lives on the bottom row. It needs a Linux system underneath, whether that is a bare-metal Ubuntu install, a VM, or (with care) an LXC container.

The Proxmox FAQ draws the same line. It describes Docker as aimed at “running a single application in an isolated, self-contained environment,” calling these application containers, as opposed to system containers like LXC that boot a full Linux userland.

LXC vs Docker: system containers vs application containers

Both use the same Linux kernel features, which is why they’re often confused. In practice they behave differently.

Feature Proxmox LXC container Docker container
What’s inside A full Linux distribution (Debian, Ubuntu, Alpine…) with init and services One application and its dependencies
Lifespan Long-lived, updated in place with apt, like a small server Disposable; you replace it with a new image version
How you manage it Proxmox web UI, pct CLI, console access docker CLI, compose.yaml files
Configuration Edited inside the container Declared in image + environment + volumes
Persistent data The container’s root disk Named volumes or bind mounts
Backup Proxmox backup jobs (whole container) Back up volumes/bind-mount folders and compose files
App ecosystem Install software yourself Huge library of prebuilt images

Proxmox’s container documentation notes that LXC containers “use the kernel of the host system that they run on,” so only Linux distributions can run in them, and that “full virtual machines provide better isolation.” Its default unprivileged containers map root inside the container to an unprivileged user on the host, which the LXC team considers “safe by design.”

Docker’s strength is portability. A service is described in a compose.yaml file with its image, ports, environment and storage, and Docker’s documentation explains that its volume contents “exist outside the lifecycle of a given container.” You can delete and recreate the container on every upgrade without losing data, and move the whole stack to another host by copying a folder.

What Proxmox recommends for Docker

Proxmox is clear in its FAQ: don’t run Docker directly on the Proxmox VE host, and if you want orchestration or live migration, run application containers “inside a Proxmox QEMU virtual machine.” The container documentation repeats the point: for workloads that need maximum isolation and live migration, nesting containers inside a VM “remains a recommended practice.”

Why a VM rather than the host:

  • The host stays clean. Docker’s firewall documentation explains that it creates its own packet-filtering rules and that published-port traffic is routed before ufw rules apply; it also manages its own bridges and storage. Mixing that with Proxmox’s firewall and network bridges invites conflicts, and a broken host takes every guest down with it.
  • Security boundary. Docker’s security page warns that the daemon needs root privileges and that only trusted users should control it. Inside a VM, a compromised container still has a hypervisor boundary between it and your other guests.
  • Snapshots and backups. Proxmox can snapshot and back up the whole Docker VM, including every volume, in one job.
  • Easy rebuilds. You can clone the VM to test an upgrade, then throw the clone away.

Docker in an LXC container: possible, with trade-offs

Many home labbers run Docker inside an unprivileged LXC container to save RAM. It generally works once you enable the container’s nesting feature, which Proxmox describes as exposing procfs and sysfs to allow nested containers. The trade-offs:

  • Storage drivers, AppArmor profiles and kernel features can behave differently than in a VM, and problems often surface after a Proxmox or Docker upgrade.
  • Live migration isn’t available for containers the way it is for VMs.
  • The isolation between your Docker apps and the Proxmox host is thinner, because everything shares the host kernel.

If memory is tight and the services are low-risk, a Docker LXC can be a reasonable choice. For anything exposed to other users or holding important data, a small VM is the safer default.

Proxmox’s new OCI image support

Proxmox has started to blur the line itself. The current container documentation describes creating containers from OCI images, the same image format Docker uses. You can pull an image with the “Pull from OCI registry” button on a storage’s template view, then create a container with the wizard or pct create.

Two caveats from the docs: running application containers this way “is currently considered a technology preview,” and a container created from an OCI image “still uses the existing LXC framework.” It isn’t Docker, there’s no Compose, and you shouldn’t build production services on a preview feature. It’s worth watching, but the VM-plus-Compose pattern is still the dependable route.

Three practical layouts

Do you need more than one OS, or Windows, or easy whole-system snapshots?
Yes → Install Proxmox on the hardware (layout 2 or 3).
No → Install Ubuntu or Debian and Docker directly (layout 1).

Layout 1: Linux + Docker on bare metal

One OS, Docker Engine and the Compose plugin, every app in a Compose folder. It’s the simplest and uses the least RAM. You lose hypervisor snapshots and the ability to run a Windows VM or Home Assistant OS alongside. Our guide to installing Docker Compose on Ubuntu covers this setup.

Layout 2: Proxmox + one Docker VM (most common)

Proxmox on the hardware, one Ubuntu or Debian VM for all Docker stacks, and other VMs or LXC containers for things that don’t fit Docker well (for example Home Assistant OS, a firewall appliance, or a Windows test box). Size the Docker VM from the requirements your apps publish, start modestly, and grow it later; Proxmox lets you add vCPUs, memory and disk space to a VM after creation.

Layout 3: Proxmox + LXC for small services + Docker VM

Lightweight services you’d rather maintain like tiny servers (DNS filter, VPN endpoint) go into unprivileged LXC containers, while image-based apps go in the Docker VM. This uses resources well, at the cost of two management styles.

Step list: a Docker VM on Proxmox

  1. Upload an ISO. Download Ubuntu Server LTS or Debian 13 and upload it to a storage with the "ISO image" content type.
  2. Create the VM. Use VirtIO SCSI single for the disk, VirtIO for the network, and enable the QEMU guest agent option. Give it a disk large enough for images and volumes (Docker images add up quickly).
  3. Install the OS with a static IP or DHCP reservation and OpenSSH.
  4. Install the guest agent inside the VM so Proxmox can see its IP and shut it down cleanly.
  5. Install Docker Engine and the Compose plugin from Docker's official repository.
  6. Create a folder per stack (for example ~/stacks/app) with its compose.yaml and data directories.
  7. Schedule a Proxmox backup job for the VM, and test a restore.

Inside a Debian or Ubuntu VM, steps 4 and 5 start like this:

sudo apt update
sudo apt install qemu-guest-agent
sudo systemctl start qemu-guest-agent

qemu-guest-agent lets the Proxmox host talk to the VM for clean shutdowns, IP reporting and consistent backups. After that, follow Docker’s repository instructions to install docker-ce and docker-compose-plugin, then check with docker compose version. If you hit a missing-command error, see docker compose command not found.

Security rules that apply to both

Keep admin surfaces privateNever forward the Proxmox web UI (port 8006), SSH, or any container admin page from your router to the internet, and never expose the Docker socket or Docker API over the network. Reach them over a VPN such as Tailscale or WireGuard, and put only the apps you intend to share behind a reverse proxy with TLS and strong authentication.

Also be cautious with images that ask you to mount /var/run/docker.sock. Anything with access to that socket effectively controls the Docker host.

Which should you start with?

If you have one modest machine and just want a handful of self-hosted apps, start with Linux and Docker and skip the hypervisor. If you want to experiment, run different operating systems, or roll back mistakes with snapshots, put Proxmox on the hardware and run Docker in a VM. You can begin with layout 1 and migrate later by copying your Compose folders into a Proxmox VM.

For the hypervisor side, start with the Proxmox setup guide; for container workflows, browse the Docker section and the Proxmox section.

Frequently asked questions

Can I install Docker directly on the Proxmox host?

Technically yes, since Proxmox is Debian-based, but the Proxmox FAQ advises against it. Docker changes firewall and network settings on the host and mixes app workloads with your hypervisor. Use a VM instead.

Is Docker in an LXC container a good idea?

It works for many people with the nesting option enabled, but it adds edge cases with storage drivers, AppArmor and upgrades. Proxmox still recommends a QEMU VM where isolation and live migration matter.

Does Proxmox support OCI images now?

Yes, as a technology preview. You can pull an OCI image from a registry into container template storage and create an LXC container from it, but it still runs on the LXC framework, not Docker.

Do I need Proxmox if I only run Docker containers?

No. If you have one machine and only Docker workloads, a plain Linux install with Docker Engine and Compose is simpler. Proxmox becomes worth it when you want several VMs, snapshots or easy rebuilds.

Sources

  1. FAQ: Proxmox Server Solutions
  2. Linux Container: Proxmox Server Solutions
  3. Storage: Proxmox Server Solutions
  4. Proxmox Virtual Environment 9.3 with focus on improved Enterprise storage experience: Proxmox Server Solutions
  5. How Compose works: Docker Docs
  6. Volumes: Docker Docs
  7. Docker Engine security: Docker Docs
  8. Packet filtering and firewalls: Docker Docs
Written and maintained by the Self-Hosting HQ Editorial Team

We research every guide from manufacturer documentation, government and standards bodies, and other primary sources, which are cited at the end of each article. We do not accept payment for coverage. Read our editorial policy to see how articles are researched, fact-checked and updated, or tell us if something is out of date.