EDIT: For some context, I recently gave podman another go. I have a few services on my homelab server set up in docker containers, so I tried migrating to podman.
After the second major bug (open issue on github) I encountered looked like it would require completely dropping using compose files to work around, I gave up and went back to docker.
I like the idea of podman, but it’s just not stable. I’ll try again in a year or so.
As a bonus, docker’s CLI is significantly nicer.
podman quadlets are next level
I dislike quadlets. Compose configs are way more concise, and just look nicer.
I don’t know how you would even compare them. Quadlets can do what Docker Swarm or Kube does with dynamic instances and dependency lifecycle management. Docker Compose doesn’t have nearly the same features as Podman Quadlet.
Docker swarm uses compose files too. But really, when you have tools like Podlet that converts compose files to quadlets, it’s a pretty good sign that the two fit 90% the same use cases.
I think its more than Compose does a small subset of what Quadlets can do. I can understand why if your only use case is Compose and you already like it, why change? For me, the rootless by default and daemonless nature of podman quadlets, and its clean design all make it the preferred choice.
Podman-compose also works rootless and without a daemon. Naturally since it’s daemonless, it does require a separate systemd service if you want services to automatically restart (I forget exactly what that systemd service is called).
What do you mean by “clean design”? This is of course subjective but I just want to understand quadlets more.
What do you mean by “clean design”?
If you are comfortable reading the source code for each project that is the most revealing way to see the difference.
In short, Docker has a lot more code because it duplicates a lot of kernel and systemd functionality (often poorly), uses multiple components that communication over grpc with each other to do things, requires setuid binaries, and defaults to running everything as root.
Podman, is a straight forward clean simple program that fully uses kernel and systemd interfaces rather than duplicating functionality. Quadlet is build on systemd generators and its use of templates via systemd instances lets you use deterministic dynamic configuration in ways that is unlike anything in Docker.
If you are comfortable reading the source code for each project that is the most revealing way to see the difference.
Strongly disagree on this. Design can mean many different things. For example in the docker vs podman explanation you gave, you are talking about integration with Linux and adherence to Linux standards, and I agree that with you on that. That’s one of the reasons I do prefer Podman over Docker.
However when I think about “clean” in regards to podman-compose vs Quadlet, I think about the user/developer experience. Quadlets integrate with systemd, but as a consequence inherit the design and interfaces of systemd. This means putting Quadlet files into a global systemd folder. This makes GitOps harder since all your projects get combined into a single folder. Also I’m not a fan of how verbose systemd config format is, like the repetition of keys. Seeing
PublishPort=repeated for every port mapping looks ugly imo. And every service needs to be defined in a separate file, even if some services are only a few lines of config. Which makes it harder to see all services at a glance.I recognize this is all my subjective preferences, but this is just what I think when I hear “design”.
What’s podman?
Podman is the RedHat implementation of the Open Container Initiative (OCI).
A
Dockerfileand aContainerfileare both OCI. Docker and Podman can generally both use either.Contrasted with Docker, Podman has better security defaults, and installers and licenses that are both actually open source. (Parts of Docker are open source. Parts are not.)
Docker used to lead with additional features beyond OCI such as Docker Compose, but Podman Compose has been a thing for a while, now.
The more mature a product is, the more likely it works perfectly with any OCI compliant tool.
For rookie work, I feel like there’s still fair odds the developer only uses Docker and may rely on some anti-pattern that requires setting “bad security=ok” settings before their project will work in Podman.
Your mileage may vary.
It’s a daemonless client for managing Linux containers. So any “docker” container. Most Linux distros have a native package for it too
not much man how about you
y’all use containers still? I run my site with native installed software configured by hand like a TRUE sysadmin!
You’re that chain smoking black hat with a stack of computers, black out curtains several screens and not a single lightbulb.
I just use the native docker apps that truenas has preconfigured. The one time I needed a custom compose container I just bashed my face against the keyboard until it worked. This is how I feel about all containerization. There really should be an easier system. Nothing wrong with higher accessibility.
Podman is unironically the better choice. Just try to make docker comply with your firewall…
Cult
Docker bypasses your firewall and runs as root. Only an idiot would allow that shit… I’m an idiot. But I’m fixing that.
It doesn’t “bypass your firewall”… it lets you shoot yourself in the foot. You’re asking it to open ports without specifying an explicit network interface so it opens them on all interfaces. Which includes opening up the firewall, because what’s the point of putting up a service and blocking it in the firewall.
Also, doing it by hand would be incredibly tedious. Docker automatically adjusts the rules to match the ports and interfaces to its private container netmasks, and brings them up or down as needed when the containers start/stop.
All you have to do is bind ports to localhost or to a private interface if you don’t want the service to be publicly exposed.
Beginners get bitten by this because they say
ports: 9999:9999instead ofports: 127.0.0.1:9999:9999/tcplike they should. Unfortunately most examples out there use the terse version and never explain why it’s bad.
Podman is unironically the better choice.
I like the idea of podman, but it’s just not stable. This meme was inspired by my frustration of trying to switch.
Just try to make docker comply with your firewall.
I literally did this yesterday and it wasn’t that hard. You just add
iptables:Falseto the docker config file.
I’m intrigued a LOT by Podman but also I’m already running some Docker stuff and it’s working.
I’d really like some guides on how to switch over and what all that entails, that isn’t written like I have 13 cloud certificates and this is another day at the office LOL.
So, 100% skill issue on my part.
In great news though: OpenMediaVault has Podman support in its GUI now! Love them.
I choose Podman bc it’s open source and that’s kind of the reason for using everything as a container bc those are often also open source. Fuck docker
It also can integrate with Systemd via Quadlets. Let’s you control containers as a sytemd service. I personally use them for my home server and have been happy with it.
The learning curve for quadlets is quite harsh in my opinion. I started with podman compose 3 years ago for my homelab, because it allowed user containers.
I tried to migrate to quadlets unsuccessfully, several times over the years. it was only recently that my self-hosted Qwen was capable enough to figure out where I was messing up and automate the process a bit.
I probably wasn’t sufficiently motivated. It felt like podman compose is basically docker compose, but quadlets are a quite a bit different in form and function, so I was never able to grok them:
There is a tool named Podlet that can help translate to quadlets. I was able to fully translate my unraid and compose setups to quadlets.
I remember trying it and my compose files blew up to multiple Quadlet files with a much larger total size (lines of code). I find that compose is just more concise and structured compared to Quadlets.
It does have a larger file size compared to compose, sure. The big advantage of quadlets is that systemd will handle things in the event of a failure. It makes it a great option for production environments where you will not need to update your config files as much. It also allows you to have more control over when each application starts, if they rely on a specific disk mount or service running on the system. I’m sure someone else can provide more benefits who use them in a production environment.
Fair enough. My requirements are simply: start all services when the machine has finished booting. And I can’t remember the last time my system failed. Most that happened was a power outage, and Quadlets wouldn’t have helped there either.
So in my case I much prefer simple and easy-to-read configs, over the complexity of integrating with systemd.
Docker compose definitely works for most people, so I would feel pressured to swap.
There is one instance where Quadlets would have fixed an issue we ran into at work. We had a Kafka instance whose container died and went away because we ran out of space on the server. Compose doesn’t recreate containers on failure, so I was called in to fix the issue. Quadlets treats containers as disposable, so it would have recreated it as soon as it went away. The root of the issue was a bad logging config that we fixed on the next business day.
Are u running podman containers on Unraid or did you migrate away?
I migrated from docker containers on Unraid to using quadlets on RockyLinux. The Podlet utility helped a bit with taking an existing docker container and converting it to a quadlet. Also did thorough testing in a VM before swapping my server.
Interesting, just migrated away from Unraid myself. But chose Proxmox -> Debian -> Podman Containers instead. Any reason in particular you chose Rocky?
Also, does Docker do rootless containers yet?
It does, but it seems like it’s still a bit of an afterthought. But it’s getting better.
Still tho, podman is fine and I like the project as an alternative to docker.
Docker rootless has been more stable for me than podman
Wtf I thought docker was foss. Fml man
If you install the GUI it literally won’t let you open it unless you agree to their telemetry…
Docker is foss. Docker desktop and docker sbx are not.
It’s FOSS, but not Libre, and more close to open-core than to open source.
It can’t be FOSS but not Libre, the Free in FOSS means Libre. And it also can’t be FOSS but not opensource, of course.
No, Free means “Gratis”, or “Free as in Free Beer”, Libre means “Free as in Freedom”. That’s why FLOSS is recommended to be used instead FOSS, because the latter can be prone to confusion.
The version that is installable from the repositories of Linux distros is all open source. Docker itself, the container engine and runtime are all open source. Nobody cares about stuff like docker desktop or docker sbx, not only are they not critical to the software itself, they aren’t that useful or valuable.
I don’t mean Docker Desktop, I mean docker-cli and moby.
Just because something has a FOSS license and is open-sourced in some code forge doesn’t mean that it effectively respects some (or even all) of the four freedoms.
It’s licensed Apache 2.0, which has been acknowledged as FOSS by the EFF.
The version you get from Debian does respect all four freedoms.
Are you sure about that? I see Copyright at the bottom (maybe the name) and is free only for personal tier, everything else costs money. Maybe some of the containers are open source per https://www.docker.com/products/trusted-content/open-source/ but I don’t see where it says anywhere that the actual software that is docker is OSS let alone FOSS.
The core of Docker is called Moby, which is open source on GitHub. So are docker-cli and compose
Ah, explains the whale!
It also works better sooo
What exactly is your problem with Docker? It’s open source.
Also closed-source container images exist.
Docker is open source though. Docker desktop is not.
Docker desktop is not. (open source)
Which can be a pretty big deal.
This works out to: The product is unencumbered, but the only reliable installer is encumbered as fuck.
That’s a “no thanks”, from me.
I don’t need the sword of “Docker fucking with my colleague’s ability to collaborate” hanging over each of my projects.
I’m not mad at folks using Docker for backwards compatibility. I just don’t need to make the problem worse.
I found Docker pretty easy to install. Though apparently it’s harder on windows, where they suggest you just use docker desktop, in which case, yeah, fair point. But I’d just put docker in WSL if I had the misfortune of having to use it on Windows.
But I’d just put docker in WSL if I had the misfortune of having to use it on Windows.
Oh, thanks! I might try WSL next time, should I be so unfortunate, again.
So, the Docker engine is free, just not the software under certain stipulations. See I don’t like that. A weird caveat for using it.
What do you mean? I don’t see any CLAs or anything like that in the source code.
This
NOTICEin both repos is weird asf:Docker Copyright 2012-2017 Docker, Inc.
This product includes software developed at Docker, Inc. (https://www.docker.com/).
This product contains software (https://github.com/creack/pty) developed by Keith Rarick, licensed under the MIT License.
The following is courtesy of our legal counsel:
Use and transfer of Docker may be subject to certain restrictions by the United States and other governments. It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.
For more information, please see https://www.bis.doc.gov/
See also https://www.apache.org/dev/crypto.html and/or seek legal counsel.
Also, they do limit some kind of uses if you don’t pay.
Also, they do limit some kind of uses if you don’t pay.
You mean Docker Desktop?
Also iirc all software developed in the USA is subject to those restrictions.
…iirc all software developed in the USA is subject to those restrictions.
Oh, well, I didn’t knew about that, yeah.
You mean Docker Desktop?
And, in part yes, but these restrictions also apply to docker-cli and moby, although to a lesser extent
And, in part yes, but these restrictions also apply to docker-cli and moby, although to a lesser extent
What restrictions? The ones on all US software or something else?
Use and transfer of Docker may be subject to certain restrictions by the United States and other governments. It is your responsibility to ensure that your use and/or transfer does not violate applicable laws.
That’s true of all software. It may be subject to restrictions by governments. But in this case, it seems to refer to the fact that the US restricted export of cryptographic software, and seemingly continues to restrict. See also Bernstein v. United States.
Also it’s more secure and performant as it’s rootless and daemonless.
Docker at home:
chroot
This is why I don’t like Docker compared to Podman:

I literally yesterday dealt with that. There’s an option to just turn off Docker’s firewall manipulation so you can do it manually.
I had the same issue, but I just added my plain iptables rules to the DOCKER-USER table, which worked fine
Please elaborate…
Basically put:
{ iptables: False, Ip6tables: False }In /etc/docker/daemon.json
I may be dumb but I apply the firewall at the router level (OPNsense). That should be fine, right?
Security should be layered. Ideally both network & server-based firewalls should be enabled.
Docker has the advantage of fucking working. Every time I use podman, something is wrong. Especially with networking. I mean good luck running a compose file first time. Nowadays I run both. I always gives podman a go first. Almost always end up on docker
Problem in chair, not in computer.
Skill issue, as the youths call it these days.
I still know it as Layer 8 issue.
I know it as PEBKAC, closer to @crypt0cler1c’s. I like Layer 8, þo.
We used to call it a carbon interface error.
It was also a 1-oh-4 when I was young.
I-D-ten-T error
How does podman handle docker compose tasks?
There’s
podman-composeavailable through your package manager or pypi.I’ve always had issue with
podman-compose. So I setup a podman socket and use it with docker compose.Probably as good as it can, you shouldn’t use docker compose with podman anyway, there are two alternatives (quadlets - they describe everything as a systemd units and kube yaml - they use standard k8s yaml files including pods, deployments, secrets, etc.), both arguably better than compose.
Surprisingly well?
It’s rare when I have to look up special instructions for podman. Once þe setup is ironed out commands are mostly interchangeable.
Þe podman team have done a great job.

Can you stop using thorn? It’s quite a problem for some people, it makes reading very hard for them
Through a hacky Python script (podman-compose), but apparently it works. But IMHO there’s no reason not to just rewrite compose files as quadlets. I think it’s so neat that they work pretty much just like normal systemd units, it makes it feel a lot more logical especially if you’re used to pre-container workflows.
One problem with Podman is that there isn’t a lot of newbie-proof documentation, tutorials etc. partially because it’s not as popular as Docker and partially because it’s developed by Red Hat and they want you to get a RHEL license to access learning resources and support. But if you’re good with man pages, this shouldn’t be much of a problem, it’s easy enough to figure out what to do.
Couldn’t someone like you type up a short list with tips and tricks and post it where the newbies can find it?
They don’t just work pretty much like systemd units; they are generated into systemd units
I would recommend using the docker-compose cli pointed at a podman socket over podman-compose. I don’t think anyone has been recommending podman-compose for quite a while now.
I prefer compose for development instead of quadlets. Actually I prefer compose either way although I use quadlets on my server.
With quadlets all projects files are in the same location and you need separate files for each container, volume, network, etc.
Switching colleagues over to Pdman desktop, whenever legal asks about licenses for DD. :)
Podman has some thngs rhat I don’t like but it ften works much better, and a lot f really great tools use it natively (like distrobox)
Is your keyboard ok?
I choose to use podman over docker because look at those cute seals 🥰
Also a solid technical reason for openSUSE
They look like a water type dugtrio.
Mom, i can i have podman?
Mom: we have podman at home.
Podman at home: rootless docker
Why would you use docker when you could use podman?
Why would you use podman when you could
#!/bin/ksh daemon_execdir="/home/etebase/src" daemon_logfile="/var/log/etebase" daemon="/home/etebase/pyenv/bin/uvicorn" daemon_flags="etebase_server.asgi:application --host 159.100.247.89 --port 8000" daemon_user="_etebase" . /etc/rc.d/rc.subr rc_bg=YES rc_reload=NO pexp="/home/etebase/pyenv/bin/python3 ${daemon} ${daemon_flags}" rc_start() { rc_exec ". ~/.profile; ${daemon} ${daemon_flags} >> ${daemon_logfile} 2>&1" } rc_cmd $1Oh why you gotta talk so dirty to this little chatbot
Did you mean rc_start $1 as the last line of that script?
Idk, I was lazy and copied from here instead of going to one of my actual OpenBSD installations and checking. Could be different on other BSD style inits.
There are still various incompatibilities between the two, and it becomes relevant if you need to work with any organization that has standardized on Docker-specific tooling.
Some containers don’t like non-root setups.
I use docker since it’s what I learned on a decade ago, and my nas that I started from supports docker bit not podman in the ‘app store’. I have three other machines running plain Debian, but I would want everything to work together, y’know? I’ve got a set-and-forget setup and I’d rather not break things without substantial benefit…
Plus everybody is like ‘it’s the same thing, no learning curve’ but then I start reading up on it and uhoh, learning curves :p
Just uae the repositories in the terminal…
What?
I mean, install it from the repos through your package manager in the terminal, on your NAS.
With every update they warn that any changes made outside the UI may be overwritten (only data in user directories is safe). I have edited a couple config files over the years that have sticked, but they expect the system directories to stay ‘stock’ and warn of data loss or system malfunction if changed. And since it’s my nas it’s a lot of data to be going yolo on, even with backups. Wayyyy to much risk for almost no benefit.
Plus everybody is like ‘it’s the same thing, no learning curve’ but then I start reading up on it and uhoh, learning curves :p
Exactly this. I tried podman, as a “container” newb, based on the idea that it’s a (better) drop-in replacement for docker, but it didn’t work. My quick attempts to resolve it went nowhere, and there were no instructions for the container I was trying to spin up for podman to explain the differences required.
So, in frustration, I decided to try docker and it just worked.
Good enough for me, for now. I still prefer the idea of not having a daemon running with root privileges, so I’ll likely move over to podman eventually, but I only have so much time to waste tinkering with my setup. And if it ain’t broke, don’t fix it.
same, docker just works when I’m trying to use version pinning on half my containers so they don’t try using the wrong rocm version
In almost all cases podman will work as a drop-in replacement. Problems usually arise from podman not being rootful by default, which does make a difference in most scenarios that involve volume mounts, exposing ports or other kinds of host resource access. You can run podman as root and nowadays even docker as rootless (though at that point you might be better off with podman).
Use docker rootless.


























