Docker or Proxmox? Something else entirely?
New server has been acquired. Debian 13 has been installed.
GS308EP switches have been acquired and installed.
Now, I'm working to migrate to the new machine. 3 1/2 years ago when I started futzing with Docker, I sorta followed guides and guessed, abused it trying to make it do things it wasn't designed for, and flipped switches I likely shouldn't have flipped, so the set up is more than a little shabby.
As a result, I'll likely end more redeploying than migrating the containers.
So rather than go forward with Docker blindly, I want to reassess whether I shouldn't look into Proxmox, LXC, or Podman instead of Docker, or maybe something else entirely?
Work is just about done dumping ESX for Nutanix, but both of those seem overkill for my needs.
Of course the forums for any of the solutions make their own out to be the best thing since sliced bread and the others useless, so I'm hoping to get a more nuanced answer here.
Vendetta9076
in reply to JeanValjean • • •SpikesOtherDog
in reply to Vendetta9076 • • •abeorch
in reply to Vendetta9076 • •Selfhosted reshared this.
uncloaked
in reply to abeorch • • •abeorch likes this.
Scrubbles
in reply to abeorch • • •felbane
in reply to abeorch • • •It's not worth the headache IMO. Just run a docker VM and use lxc for the one-off systems that you want to experiment with.
I have a "production" docker VM and a "sandbox" docker VM and prod only ever runs compose files that I've vetted in sandbox. Super stable, basically bulletproof, and still has the flexibility to experiment and break stuff without affecting my core services.
iturnedintoanewt
in reply to Vendetta9076 • • •Imacat
in reply to Vendetta9076 • • •Blastboom Strice
in reply to JeanValjean • • •Creat
in reply to Blastboom Strice • • •glizzyguzzler
in reply to JeanValjean • • •If you’ve got Debian already installed, I cannot resist advocating for Incus (stable branch from Zabbly repo with web ui blog.simos.info/how-to-install…) in lieu of proxmox. Does the same thing but you don’t have to rip out the kernel Debian uses.
With Debian 13 you have access to podman quadlets, use that for any non-vm needs. The ease of docker compose files easily removes reason for programs in LXC containers, and podman removes reason for docker in an LXC. LXC is left only for programs that aren’t containerized. VMs for security DMZ. Podman for bulk of stuff you want.
Good luck!
How to install and setup the Incus Web UI
Simos Xenitellis (Mi blog lah!)tofubl
in reply to glizzyguzzler • • •koala
in reply to tofubl • • •Came in here to mention Incus if no one had.
I love it. I have three "home production" servers running Proxmox, but mostly because Proxmox is one of very few LTS/comercially-supported ways to run Linux in a supported way with root (and everything else on ZFS). And while its web UI is still a bit clunky in places, it comes in handy some times.
However, Incus automation is just... superior.
incus launch --vm images:debian/13 foo
, wait a few seconds thenincus exec foo -- bash
and I'm root on a console of a ready-to-go Debian VM. Without--vm
, it's a lightweight LXC container. And Ansible supports running commands throughincus exec
, so you can provision stuff WITHOUT BOTHERING TO SET UP ANYTHING.AND, it works remotely without fuss, so I can set up an Incus remote on a beefy server and spawn VMs nearly transparently. +
incus file pull|push
to transfer files.I'm kinda pondering scripting removal of the Proxmox bits from a Proxmox install, so that I just keep their ZFS support and run Incus on top.
beerclue
in reply to JeanValjean • • •frongt
in reply to beerclue • • •Nico198X
in reply to JeanValjean • • •i just came into containerization recently and skipped Docker completely and went straight to podman. it's been fantastic and integrates well with systemd. i would recommend anyone new to do the same.
since you're not new, and are looking for something different, i would say do podman instead of docker.
reluctant_squidd
in reply to Nico198X • • •I concur. Podman is superior in my opinion. It’s more secure by default (rootless containers) and can do pretty much everything docker can do naively (you can literally alias docker to podman in your shell and it will work)
It’s not as easy to find info on some of the systemd specific stuff (Quadlets), but once you figure that out, it’s pretty amazing.
I ended up making up my own scripts to allow me to create new system users, pre-loaded with aliases and shortcut functions to make my life easier ( automatic quadlet container file generation, pre-set network rules, etc), but it is not required.
All the info is there, but starting out it can be a bit overwhelming.
My containers are pretty much self sufficient now. I just intervene when something needs major updating or config changes
chocrates
in reply to JeanValjean • • •Proxmox is a hypervisor. I would install that as your os if that is something you want.
If you just need containers, podman is good. Docker is fine, but podman is open source.
That being said, I run proxmox on my server and have various vms running. I have a laptop that I will use to play with containers and if it turns into a service I want I'll make it run on proxmox, either as a container itself or as something running on a VM on the hypervisor
hobbsc
in reply to chocrates • • •Creat
in reply to JeanValjean • • •Proxmox and Docker don't really do the same thing. They live in the same area, but the coverage is very different. You can always use docker when your host is running proxmox: either individually or in groups inside of an lxc, or all in w dedicated VM, or even natively on the same house if you prefer chaos. But you can't do the opposite: Sometimes you just need a VM. Maybe you only need a couple of devices, and you know they run on or are even designed for docker, then that's the better option. In all other cases, and when just getting started, proxmox is just the way more universal solution if you're only planning on having a single host (for now).
The management tools in proxmox are great. The community scripts are a fantastic resource and only work with proxmox. I would suggest you set it up natively, not on top of Debian though, even if that's already installed. Not the least of the reasons are to be able to use ZFS easily, including on on the boot partition (select that in the installer).
Finally, if you're gonna stick with docker, like others said: consider podman. That really does the same thing docker does, but it's fully open source. Arguably it's better in some areas, but on the flip side might, in occasion, require fiddling with something intended specifically for docker and using advanced setups.
Also there really is no wrong answer, either. And you can always change whatever you choose.
abeorch
in reply to Creat • •Selfhosted reshared this.
Creat
in reply to abeorch • • •Lka1988
in reply to JeanValjean • • •I run Proxmox in my small cluster. Proxmox runs multiple VMs that each run various groups of docker containers.
They're on different levels.
tazeycrazy
in reply to Lka1988 • • •frongt
in reply to JeanValjean • • •Proxmox can run lxc containers natively.
Personally I keep a Debian VM for docker, a holdover from before hypervisors supported containers natively. I use docker compose and it Just Works™.
tazeycrazy
in reply to frongt • • •warmaster
in reply to JeanValjean • • •abeorch
in reply to JeanValjean • •I am not in a position to judge but Id be interested to hear comments on this position.
From the Proxmox Discussion Forum
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.
Selfhosted reshared this.