Question How to run Proxmox and Docker together ?

noideagamer

Reputable
Jan 6, 2021
24
1
4,515
I'd like to build a small form factor power efficient home server, but would like to run both VMs and containers.

I was thinking of buying something like an Intel NUC for use with both proxmox and docker but not sure how these two could go exist on a single server? I assume the only way would be to install proxmox bare metal and setup docker on a ubuntu VM - If so, would this perform well?

Also, iId like to virtualise a number of things and pass through access to some physical hardware - for example i'd like to virtualise my router (pfsense) but pass through the physical NIC - something I do not think is it possible in the Intel NUC since it would not have a PCIe slot for a NIC - can anyone recommend alternative hardware for a small form factor power efficient home server, that would meet my requirements
 
You have two options. run docker in a VM. This works very well and is the recommended approach by the Proxmox people, at least until the next version of Proxmox which will reportedly run docker containers directly. The second option is to spin up an Ubuntu image in an LXC container, and install docker to that. Lots of people take this second approach, but the Proxmox developers discourage it.

I highly recommend that you install pfSense on bare metal in its own box. BUT if you want to use a single NIC NUC box, it is very possible. You will need to create a number of virtual NICs and use VLANs to accomplish what you want to do. You will also need a managed switch, which isn't a big deal. Basic 1GBE managed network switches can be had for $25-$35 -ish. There are tutorials out there that talk about how to do this.