I'm new Proxmox user. Installed 3 nodes cluster with CephFS.
Looking at docs here: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_pct
Recommendation is to run Docker in VM.
Does anyone have any explanation: why it's not recommended to run Docker on the Proxmox host?
The reason I want to try to run Docker on the host:
1. Easy access to CephFS on the host: direct bind to /mnt/pve/cephfs/mountX. Versus hassle (example) of mounting CephFS from VM
2. Easy access to storage on USB and node's hard drives (not CephFS). Easy bind if done on the host. Hassle with passthrough, if done from VM.
3. Efficiency. VM is really unnecessary. Less maintenance. Lower attack surface.
From my limited research I saw these reasons, why I should NOT run Docker on host:
Is it true? Seems to be speculative, as Docker runs on millions of other systems without the interference. Is it Proxmox really the edge case here?
It's true that Docker containers doesn't have the level of isolation, which VM has. But for some environments that's acceptable risk.
Testing:
I'm going to install Docker on the Proxmox host and test it. What should I watch for? Where should I expect to have issues?
Looking at docs here: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_pct
Running Docker in CT is not recommended, too.It is not recommended to run docker directly on your Proxmox VE host.
Recommendation is to run Docker in VM.
Does anyone have any explanation: why it's not recommended to run Docker on the Proxmox host?
The reason I want to try to run Docker on the host:
1. Easy access to CephFS on the host: direct bind to /mnt/pve/cephfs/mountX. Versus hassle (example) of mounting CephFS from VM
2. Easy access to storage on USB and node's hard drives (not CephFS). Easy bind if done on the host. Hassle with passthrough, if done from VM.
3. Efficiency. VM is really unnecessary. Less maintenance. Lower attack surface.
From my limited research I saw these reasons, why I should NOT run Docker on host:
1. Potential Conflicts and Interference: Proxmox VE relies on specific kernel modules and configurations to manage VMs and containers effectively. Installing Docker directly on the host can introduce conflicts that disrupt Proxmox VE's functionality.
Is it true? Seems to be speculative, as Docker runs on millions of other systems without the interference. Is it Proxmox really the edge case here?
2. Security Risks.
It's true that Docker containers doesn't have the level of isolation, which VM has. But for some environments that's acceptable risk.
Testing:
I'm going to install Docker on the Proxmox host and test it. What should I watch for? Where should I expect to have issues?
Last edited: