Mom, i can i have podman?
Mom: we have podman at home.
Podman at home: rootless docker
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?
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.
Compose doesn't recreate containers on failure
Isn't it just restart: always in the config? Unless you're talking about podman, where you also need the podman-restart systemd service.
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?
The security of Rocky is solid and RL 10 is supported for quite a long time. I'm also used to RHEL based systems at work, as we target Red Hat.
That being said, I wouldn't recommend it for most people. SELinux can be annoying to deal with and can cause issues where it isn't obvious that SELinux is the cause.
If I were to chose again, I would probably just pick Debian as most of my workloads are just running in containers or VMs. The only services running on the host are NFS and Samba.
Wtf I thought docker was foss. Fml man
Docker is foss. Docker desktop and docker sbx are not.
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.
It's FOSS, but not Libre, and more close to open-core than to open source.
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.
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.
If you install the GUI it literally won't let you open it unless you agree to their telemetry...
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.
Also it's more secure and performant as it's rootless and daemonless.
Docker is open source though. Docker desktop is not.
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 NOTICE in 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?
As is evident just from the link at the bottom of the notice, it's about US export controls on cryptographic software, which is a source of contention since the nineties.
No, I mean, for anything beyond personal, non-commercial use, they do impose restrictions.
The Apache License 2.0 does allow commercial use, and basically any other use. Can you say specifically where those restrictions are stated?
It's not about personal or commercial use, it's about whether the government allows exporting cryptographic software. Which it mostly does, but didn't always, and still has some conditions.
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.
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.
That's exactly what I'm doing at work. Works a treat especially since I'm fine with CLI.
Keep in mind that some WSL configuration might be required for better experience β like setting networkingMode to mirrored.
Sharing code between WSL filesystem and Windows is still somewhat of a hassle.
What exactly is your problem with Docker? It's open source.
Also closed-source container images exist.
Podman is unironically the better choice. Just try to make docker comply with your firewall...
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:9999 instead of ports: 127.0.0.1:9999:9999/tcp like they should. Unfortunately most examples out there use the terse version and never explain why it's bad.
This + forwarding stuff to the docker namespace is working great for me. https://wiki.archlinux.org/title/Nftables#Working_with_Docker
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:False to the docker config file.
top 77 comments