Proxmox Containers vs Running a VM and using Docker

reynolpe

New Member
Mar 6, 2023
6
0
1
Probably a basic question but what is the best way to go for someone that is new to Proxmox (and linux for that matter)? Use containers in proxmox or build a Linux VM and just run docker from it? Docker to me seems easier to deploy stuff then containers in Proxmox but that doesn't mean I shouldn't be using containers just that I'm too ignorant on them at this point. Just looking for the best way to go about this. I also have a TrueNAS server running as a container on Proxmox which I could run docker containers from there as well I guess but as soon as I upgrade my TrueNAS I think the containers will start having issues because I have SMB shares on the NAS and the next version of TrueNAS doesn't like that.

I'm in such mess now that I have Portainer running as a container in Proxmox but I don't know it's IP. Been moving too fast trying to get everything I want setup done that I didn't slow down and document some of it like I should have.
 
Linux Containers (= LXCs) and docker containers are something completely different. LXCs are system containers. These contain a full OS except for the kernel which is shared with the host. You will have to administrate them like you would do it with a VM.
Docker containers are application containers where you containerize a single appliance. You don't individualize/upgrade them. You just throw them away and create a new one. So you are quite limited what you can do with them, as all you can configure is what the container creator wants you to be able to change.

So if you want a service as secure and independent as possible, or if you want to use Win/Mac/FreeBSD, use a VM.
If you want something like a VM running Linux, but you want less overhead, at the cost of security, use a LXC.
If you just want to run some services but you don't want to invest time on learning how they work or administrating them, then running a VM with docker would be a good choice.

And I personally don't like running docker/plugins/jails in a TrueNAS VM. Lets say for example you later want to switch from TrueNAS to OMV. Would be way easier to do that, if TrueNAS is just providing the NFS/SMB shares with the containers running in a dedicated VM.
 
Last edited:
Linux Containers (= LXCs) and docker containers are something completely different. LXCs are system containers. These contain a full OS except for the kernel which is shared with the host. You will have to administrate them like you would do it with a VM.
Docker containers are application containers where you containerize a single appliance. You don't individualize/upgrade them. You just throw them away and create a new one. So you are quite limited what you can do with them, as all you can configure is what the container creator wants you to be able to change.

So if you want a service as secure and independent as possible, or if you want to use Win/Mac/FreeBSD, use a VM.
If you want something like a VM running Linux, but you want less overhead as the cost of security, use a LXC.
If you just want to run some services but you don't want to invest time on learning how they work or administrating them, then running a VM with docker would be a good choice.

And I personally don't like running docker/plugins/jails in a TrueNAS VM. Lets say for example you later want to switch from TrueNAS to OMV. Would be way easier to do that, if TrueNAS is just providing the NFS/SMB shares with the containers running in a dedicated VM.
Thanks for the quick response. LXC just seems more complicated to me but I'm sure that is just my lack of knowledge so far with Proxmox and LXC.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!