Docker vs Proxmox for a Homelab: Choose the Right Layer
Before you start
- 16 min read
- Updated December 2026
Boxes marked Run in terminal are what you type; plain text explains why. Check what you need first
What you get in one minute#
Docker packages applications; Proxmox VE manages virtual machines and Linux containers, so we can use Docker inside a Proxmox guest when both layers solve a real problem.

Logo: the official Proxmox project (proxmox.com)
For the basic install, see our Docker on Ubuntu: Every Install Option and Setting Explained Simply (Linux, Windows, Mac) guide. This comparison explains where to install it: directly on Linux, inside a VM, or in an LXC guest. It does not repeat Docker repository setup or the Proxmox disk installer.
At a glance#
- Outcome: a layout we can explain, with separate host, guest and application responsibilities.
- Time: allow an evening for a first VM; our estimate excludes OS downloads and backups.
- Difficulty: beginner comparison, intermediate guest administration.
- Default route: a Linux VM for Docker when we already need Proxmox.
| Component | Checked 6 December 2026 |
|---|---|
| Proxmox VE stable release | 9.3, announced 25 November 2026 |
| Docker Engine / Compose | 29.10.1 / 5.8.1 |
| Small verification app | Uptime Kuma louislam/uptime-kuma:2.5.13 |
| Optional native proxy | Caddy 2.11.9 |
| Management port | Proxmox HTTPS 8006; keep private |
| Official reference | Proxmox documentation source |
One current change matters: Proxmox's container docs now describe OCI application containers as a technology preview, converted to its LXC framework. That is not a reason to assume our Docker Compose project runs directly in Proxmox. The docs still recommend nesting in a QEMU VM for maximum isolation and live migration.
How it fits together#
Proxmox runs on the physical server; a Linux guest runs Docker; Docker runs our apps and keeps their persistent data in that guest.
Solid lines show the VM route; dashed lines show the optional LXC route. A simpler server may run Linux and Docker directly, without Proxmox at all.
Before you start#
We need a spare host or an existing Proxmox installation, a backup of important data and permission to change guests. Installing Proxmox onto a disk can replace its contents; follow the official installation documentation rather than experimenting on our only copy.
| Our computer | Where the work runs |
|---|---|
| Linux | Browser/SSH client; Docker commands below run inside the Linux guest |
| Windows | Browser and PowerShell's OpenSSH client; Linux guest commands run after connecting |
| Mac | Browser and Terminal SSH client; Linux guest commands run after connecting |
For this beginner path we choose an x86-64 host with VT-x/AMD-V enabled and a supported Linux guest such as Ubuntu 24.04 LTS. Proxmox's current hardware page also lists supported Arm hardware; that does not make an arbitrary Arm board equivalent to this x86 walkthrough.
The official recommendation reserves at least 2 GB for the Proxmox OS/services plus guest memory; storage systems need more. Our suggested first-lab budget is 16 GB host RAM, with a 2-vCPU, 4-GB-RAM, 32-GB-disk Linux VM for a few small experiments. These guest sizes are our planning choices, not measured app requirements. No GPU is needed.
- [ ] Host data/configuration is backed up before any installer or storage change.
- [ ] CPU virtualization, guest storage and a LAN bridge are available.
- [ ] The management network stays private; we do not router-forward 8006.
- [ ] The app's proposed port is free inside the guest, not merely on the host.
- [ ] Public HTTPS only: a domain, DNS, and ports 80/443 reaching the chosen proxy.
- [ ] We know which datasets lie outside the guest disk and need separate backup.
Tested by DIY Lab Hub: not yet. Tested on 2026-12-06: Linux = not run; Windows = not run; Mac = not run.
LLM Guide: let your AI assistant set it up#
We can let an AI guide the layers while we approve changes to the server. Copy the block below into ChatGPT, Claude, Gemini or a local model. It first asks about your setup, then follows only the path that fits you.
You are my assistant for choosing Docker alone or Docker inside a Proxmox guest.
Follow https://diylabhub.com/docker-vs-proxmox-homelab/ (checked 6 December 2026).
Work one step at a time, explaining each command. Wait for OK before deleting data, stopping services, changing the router, opening ports or changing guest features.
STEP 0 - FIND OUT MY SETUP:
1. Is my client Linux, Windows or Mac? Is the server already Proxmox VE 9.3? Check pveversion only on the Proxmox host.
2. Do I need multiple operating systems, or only a few Docker apps?
3. What host RAM, storage and CPU virtualization are available? What is already backed up?
4. Existing Linux VM or unprivileged LXC? Record its ID, private address and current features before edits.
5. Inside the guest check docker --version and docker compose version. Checked snapshot: Engine 29.10.1 / Compose 5.8.1.
6. Is guest port 3001 free? Is Traefik, Caddy, nginx / Nginx Proxy Manager or no proxy already running? Public-domain HTTPS, home-only HTTPS or localhost through SSH?
7. Which data is on guest disks and which is a host bind/device mount?
THEN FOLLOW THE MATCHING PATH:
- Only Docker apps needed: Linux plus Docker may be enough. Use the linked basic Docker guide; do not reinstall the machine.
- Proxmox with isolation/live migration needs: create a Linux QEMU VM using the official wizard, install supported Ubuntu, then install Docker inside it from the linked basic guide.
- Windows/Mac clients: use browser and SSH; run Linux commands only in the guest shell.
- Optional LXC: inspect pct config "<CTID>" on the host. Use an unprivileged container; preserve existing feature flags when enabling nesting=1,keyctl=1. Restart it only with approval. Install Docker inside the guest, never on the Proxmox host. Do not disable AppArmor or switch to privileged as a generic fix.
- OCI technology preview: do not treat it as a replacement for this Docker Compose workflow.
- Existing Traefik in the same guest: external proxy network, article labels with entrypoints=https, tls.certresolver=le, backend 3001, and no host ports on the app. Create docker network create proxy only if missing.
- Native Caddy 2.11.9 in the same guest: reverse_proxy 127.0.0.1:3001. Public domain needs DNS/80/443; home name lab.home.arpa needs tls internal and root trust on Linux/Windows/Mac.
- No proxy: use the article's SSH local forwarding for the loopback-only test app.
- nginx / Nginx Proxy Manager: read Kuma's official proxy instructions; do not invent settings.
REFERENCE COMPOSE (inside the guest at ~/docker_volumes/lab-monitor/compose.yaml):
services:
lab-monitor:
image: louislam/uptime-kuma:2.5.13
container_name: lab-monitor
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
volumes:
- ./data:/app/data
Create data, config, logs and backups there first. Run docker compose up -d only in that folder. The app's basic setup is in the linked Kuma guide.
CHECK IT WORKED: docker compose ps and curl -I http://127.0.0.1:3001 inside the guest; browser through SSH forwarding or HTTPS. Check docker inspect lab-monitor --format '{{json .Mounts}}' to locate data. Restore a guest backup under a new ID on an isolated network before trusting it.
RULES FOR YOU: only official sources and these pins; no floating tags or invented flags. On error show the actual text and read https://github.com/proxmox/pve-docs and https://docs.docker.com/ before guessing. Never expose 8006 or the Docker API publicly, and never bind host system directories into LXC. Bind/device mounts are not included in LXC backups. Dummy domains, IDs, paths and addresses must be replaced. Never request passwords, tokens or keys in chat.
Step 1: Choose the layer we actually need#
Linux#
A Linux host with Docker is enough when we want a few applications sharing one kernel. Choose Proxmox when guest boundaries solve a problem.
Windows (PowerShell)#
Docker Desktop is suitable for learning Linux containers on this client. It is separate from choosing Proxmox for an always-on server.
Mac (Terminal)#
The same distinction applies. Docker Desktop provides a Linux environment for Linux containers; it does not turn the Mac into this Proxmox host.
| Option | Isolation boundary | Good reason to choose it | Extra responsibility |
|---|---|---|---|
| Docker on Linux | Application containers share the Linux kernel | Small server with Docker apps | Host OS and app backups |
| Docker inside a Proxmox VM | VM has its own guest kernel | Separate OS, stronger boundary, guest recovery | Host plus guest OS maintenance |
| Docker inside LXC | System container shares the Proxmox host kernel | Deliberate lightweight nested experiment | Feature, kernel, storage and permission constraints |
| Native app inside LXC | System-container boundary | Linux service intended for normal OS installation | Guest packages and data consistency |
An LXC container commonly runs a Linux user space with system services. A Docker container normally packages an application and its dependencies. Neither term means “a full VM”. A VM's guest kernel is the key difference.
Check it worked: describe our choice in one sentence, such as “We need a separate Linux VM so Docker maintenance stays inside that guest.” If no guest boundary is useful, keep the simpler Linux-and-Docker route.
Tip: Docker inside a VM does not require nested CPU virtualization. Docker containers use the Linux guest kernel; running another hypervisor inside the VM is a different task.
Step 2: Create the recommended Linux VM#
Linux#
Use the Proxmox browser interface on its private https://<proxmox-lan-ip>:8006 address. Follow the official VM wizard.
Windows (PowerShell)#
Use the same browser wizard. Client-side PowerShell commands do not configure a Linux guest unless we connect to it.
Mac (Terminal)#
Use the same wizard; save the guest address for later SSH access.
Upload an official Ubuntu Server ISO to ISO-capable storage, create a VM, select that ISO and choose the guest disk, CPU, memory and bridge. Verify the existing bridge name on our host; do not assume a name from someone else's screenshots.
Install Ubuntu inside the VM, not over the Proxmox host. Use the official QEMU guest-agent guidance if enabling that integration. A VM reaching our LAN through a bridge has its own network address. Docker port 3001 then belongs to that VM, while Proxmox management remains on the host.
Use a DHCP reservation or another deliberate address plan. Record guest ID, address, disk location and chosen resource limits. Keep application data on guest storage included in our backup plan.
Check it worked: open the VM console, confirm the guest OS and its network access, and verify we can reconnect. On the host, pveversion identifies Proxmox; inside the guest, cat /etc/os-release identifies Ubuntu. Running commands in the wrong shell is a common source of confusion.
Step 3: Put Docker and a small app inside the guest#
Linux#
Connect to the Linux guest, follow our linked basic Docker guide and check:
docker --version
docker compose version
mkdir -p ~/docker_volumes/lab-monitor/{data,config,logs,backups}
cd ~/docker_volumes/lab-monitor
Windows (PowerShell)#
Connect to the guest with ssh "<vm-user>@<vm-lan-ip>". Run the Linux commands after connecting. Do not paste bash brace expansion into local PowerShell.
Mac (Terminal)#
Connect with the same SSH command and run the Linux guest commands.
Save this compose.yaml inside the guest. This small app verifies the layer, storage and port mapping; for the basic app install/setup, use our Uptime Kuma 2 guide.
services:
lab-monitor:
image: louislam/uptime-kuma:2.5.13
container_name: lab-monitor
restart: unless-stopped
ports:
- "127.0.0.1:3001:3001"
volumes:
- ./data:/app/data
Run docker compose up -d inside that folder, then docker compose ps and curl -I http://127.0.0.1:3001 inside the VM. Expected behaviour from the project's docs: a running container and an HTTP response. We have not captured test output.
For temporary browser access, run this on our Linux/Windows/Mac client with OpenSSH installed, replacing the placeholders and keeping the session open:
ssh -L 3001:127.0.0.1:3001 "<vm-user>@<vm-lan-ip>"
Open http://127.0.0.1:3001 on the client. Local port 3001 must be free too. The SSH connection encrypts the network hop; this does not publish the app on the LAN. Complete Kuma's admin setup through the linked guide.
Check it worked: settings survive a planned container restart and docker inspect lab-monitor --format '{{json .Mounts}}' identifies the guest data directory.
Tip: A Docker volume in the guest and a Proxmox storage volume are different layers. Record both before moving data.
Step 4: Understand the optional LXC route#
Linux#
On the Proxmox host, inspect an existing unprivileged test container:
pct config "<CTID>"
Windows (PowerShell)#
Use Proxmox's host shell or SSH to the host, then run that same Linux command. It is not a local Windows command.
Mac (Terminal)#
Use the same host shell workflow.
The official LXC configuration defines nesting and keyctl. Nesting exposes additional host procfs/sysfs information; keyctl is documented for Docker in unprivileged containers. On an expendable guest, enable those features after inspecting and preserving any existing feature flags:
pct set "<CTID>" -features nesting=1,keyctl=1
This example replaces the feature list; merge any existing flags into it before running. Restart the guest through the UI during an approved interruption, enter it using pct enter "<CTID>", then use the Docker installation guide inside that guest.
Do not make the container privileged, disable AppArmor or bind the host's system folders as a routine fix. If nesting conflicts with our kernel/security/storage configuration, choose the VM route. The guide does not promise every Docker feature works in LXC.
Check it worked: repeat Step 3's app and data checks inside the container. Then inspect mount points and prove the backup includes all intended data. Lower memory overhead is not evidence of equivalent isolation.
Put it behind HTTPS with Traefik#
With Traefik#
This route is for a web app inside the Docker guest. Do not apply it to the Proxmox management interface. For the basic proxy install see our Traefik guide. Use an existing proxy in the same guest with entrypoint https, resolver le and external network proxy.
Check docker network ls; create docker network create proxy if missing. Remove ports from lab-monitor, add networks: [proxy] and merge:
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.lab-monitor.rule=Host(`lab.example.com`)
- traefik.http.routers.lab-monitor.entrypoints=https
- traefik.http.routers.lab-monitor.tls=true
- traefik.http.routers.lab-monitor.tls.certresolver=le
- traefik.http.services.lab-monitor.loadbalancer.server.port=3001
Declare top-level proxy as an external network:
networks:
proxy:
external: true
Keep the pinned image and volume, then docker compose up -d. For public HTTPS, DNS and TCP 80/443 must reach this proxy's guest address, not accidentally the Proxmox host. A Docker network in one VM is not shared with another VM merely because both use the name proxy.
Without Traefik: Caddy#
Install native Caddy 2.11.9 from official packages/downloads inside the same Linux guest. Keep the app's loopback mapping. Save:
lab.example.com {
reverse_proxy 127.0.0.1:3001
}
Run caddy run --config Caddyfile, or use the official Linux service instructions. Our Windows/Mac machines are clients here, not Caddy servers. Public DNS and reachable 80/443 enable automatic certificates.
For home-only HTTPS use lab.home.arpa with tls internal inside the block. Resolve it locally to the guest. Import Caddy's pki/authorities/local/root.crt into each client's trust store: Debian/Ubuntu's /usr/local/share/ca-certificates plus sudo update-ca-certificates; Windows Trusted Root Certification Authorities; Mac System Keychain with explicit trust. Never copy the CA private key.
Check curl -I https://lab.example.com on Linux/Mac or curl.exe -I in Windows PowerShell. For a local CA check the home name after importing the root. Certificate verification must succeed without bypass flags.
Security and testing#
Keep Proxmox management and the Docker API private. Enable the host's documented authentication and firewall controls. Docker's daemon can control its guest with high privileges; a VM boundary does not make a leaked Docker socket harmless.
Restrict secret files such as .env with chmod 600 .env inside the Linux guest. Keep backups private. Test application access from the intended client and confirm that raw app ports and host management are not unexpectedly router-forwarded.
Common mistakes#
| Mistake | Why it happens | Do this instead |
|---|---|---|
| Install Docker on the Proxmox host | Host and guest shells look similar | Verify the OS, then install inside the chosen guest |
| Treat Docker and LXC as identical | Both are called containers | Identify application versus system-container roles |
| AI disables AppArmor to fix nesting | It skips the documented constraints | Read the actual error or use a VM |
| Rewrite all LXC features blindly | -features sets the list | Preserve existing flags when adding nesting/keyctl |
| Assume an LXC backup covers bind mounts | Host directories look like guest files | Back up bind/device data separately |
Think two proxy networks join VMs | Docker network scope is local to a daemon | Put proxy/app together or design explicit routing |
| Treat snapshots as off-host backups | Quick rollback feels complete | Keep recoverable copies outside the failing host |
Tip: First read the error in the correct layer. Host, guest OS and Docker logs explain different failures.
Troubleshooting#
| Problem | Solution |
|---|---|
| VM will not start | Read its Proxmox task log; check assigned memory/storage and host virtualization |
| App works in guest but not client | Loopback mapping is intentional; use SSH forwarding or HTTPS proxy |
| Docker fails only inside LXC | Check pct config "<CTID>" and guest logs; compare supported features before changing security |
| Files have wrong ownership in LXC | Inspect unprivileged UID/GID mapping; do not recursively chmod host directories |
| HTTPS routes to the wrong machine | Trace DNS, router forwarding, guest address and proxy location |
| Restore lacks data | Inspect excluded disks and LXC bind/device mounts |
Inside the Docker guest run docker compose ps, docker logs lab-monitor --tail 100 and docker inspect lab-monitor. On the host use the relevant Proxmox task log. Do not mix host filesystem repairs with app-container troubleshooting.
Known bugs#
We do not claim a new universal Docker-in-LXC bug. Kernel, storage and nested security limitations vary by installation. Proxmox's OCI application-container support remains a documented technology preview. For a reproducible failure use the VM route or investigate that exact version through official documentation and release notes.
Updates and backups#
Maintain three layers deliberately: Proxmox packages on the host, OS packages in the guest, and pinned images inside Docker. Do not update all three together during a first experiment. Read Proxmox's upgrade guidance before a major host version change; it is not a Docker image update.
For the example app, save this inside ~/docker_volumes/lab-monitor:
#!/bin/sh set -eu cd "$HOME/docker_volumes/lab-monitor" mkdir -p backups docker compose stop trap 'docker compose start' EXIT tar -czf "backups/lab-monitor-$(date +%Y%m%d-%H%M%S).tgz" data config logs compose.yaml
Schedule inside the guest at 03:00 with 0 3 * * * /bin/sh "$HOME/docker_volumes/lab-monitor/backup-app.sh" after saving that filename. Windows/Mac clients do not need a separate copy of this Linux job; if using Windows Task Scheduler to initiate administration, it must connect to the guest explicitly. Copy the resulting backup off the host.
Also configure Proxmox guest backups to a separate destination. Prefer a stopped guest backup for our first simple consistency check, accepting downtime. Live backup and guest-agent filesystem freezing are not substitutes for every database's own consistent backup method.
For LXC, managed mount points need their Backup setting checked; bind and device mounts are never included by the built-in guest backup. The documented backup=1 option for a managed mount does not change that exclusion.
Restore a guest backup under a new guest ID, disconnected from production networking. Check its filesystem, app archive and application data before giving it a conflicting address or enabling notifications. For app restoration, extract one chosen archive into a fresh directory on the test guest and run the same pinned image. Keep the original until that test succeeds.
To update the app, edit its exact image tag after taking the backup, then docker compose pull and docker compose up -d. Read database migration notes before assuming an old image can open updated data.
Performance and resources#
We have not measured VM versus LXC RAM, CPU, disk latency or throughput. LXC avoids a separate guest kernel, but that does not establish a useful percentage saving for our workload. A VM buys a different isolation boundary and consumes resources for its guest OS.
Use Proxmox's host/guest graphs, free -h inside Linux, and docker stats --no-stream lab-monitor. Avoid allocating all physical RAM to guests. Add resources when a measured bottleneck requires them, and budget storage for data plus backups rather than images alone.
FAQ#
Must we choose either Docker or Proxmox?
No. They manage different layers and can work together.
Is Docker in a VM nested hardware virtualization?
No. Ordinary Linux containers share the VM's Linux kernel.
Is LXC always the better low-memory option?
No. Kernel sharing and nesting constraints are part of that choice.
Can we install Proxmox as a normal desktop app?
The documented server installation is an OS/platform installation. Desktop nested virtualization is for evaluation and needs appropriate support.
Does a Proxmox backup replace app backups?
It can protect included guest disks, but consistency, excluded mounts and granular recovery still need attention.
Sources#
- Proxmox VE 9.3 announcement, hardware requirements.
- Official LXC documentation and OCI preview, LXC feature definitions, QEMU guest documentation, backup semantics.
- Docker overview, Ubuntu installation, daemon security, persistent volumes.
- Engine 29.10.1, Compose 5.8.1, Kuma 2.5.13, Docker Hub pin.
- OpenSSH forwarding manual, Traefik Docker routing, Caddy install, HTTPS, reverse proxy.
Checked against the official docs on 2026-12-06. Tested by DIY Lab Hub: not yet.