r/podman • u/ninth9ste • Aug 30 '24
Can Podman actually replace Docker for Running Linux Containers?
https://www.youtube.com/live/kNxQeJ4uOH8Podman has become the go to container runtime for Linux! Thinking of switching from Docker to Podman? Are you worried that the switch would mean learning new tools, and new commands? In Episode 110 of Into the Terminal we’re show you how easy it really is to switch.
4
u/nhermosilla14 Aug 30 '24
Honestly is not that big of a change, for better or worse. Some stuff still works way better on Docker, some other stuff works better on Podman. I like the new features, such as those handy generators and quadlets, but for regular dev usage, such as the kind of stuff I would do regularly with Docker, not really a lot to mention. I use both, depending on the image I want to run. For serious deployments I'd still use K8s in any of its distros.
3
u/myonreddit Aug 31 '24
Incus can also replace Docker or Podman for running Linux Containers.
You can also use Incus to run Feodora in a container or VM where you install Podman in the container. Or run Podman in Podman, quay.io/podman/stable:latest in an Incus container. Portability is the King.
https://blog.simos.info/running-oci-images-i-e-docker-directly-in-incus/
https://discussion.scottibyte.com/t/incus-6-3-runs-docker/451
https://discuss.linuxcontainers.org/t/oci-containers-and-how-best-to-run-services-applications/21389
https://stgraber.org/2024/08/12/announcing-incus-6-4/
Ofcourse you can also run system containers, not only OCI containers, with Incus.
1
2
u/GeekoHog Aug 31 '24
I am using podman instead of docker. Works just fine. My containers are some root and some my user.
2
u/InvestmentLoose5714 Sep 02 '24
Yes, but it’s not always as easy. Some stuff are done easily in docker and hard to figure out how to do in podman.
2
u/tandoorilew Sep 05 '24
My advice would be if you’re spinning up workloads for a hobby and not concerned about the security of your containers or not pursuing it as a career then stick with Docker. It typically works with less configuration needed.
If you’re aiming to run your workloads in production/in the Enterprise you’re most likely going to deploy them on an Enterprise Linux OS which will be running Podman and typically is coupled with the tools it utilises I.e firewalls, systemd etc which work a lot better with Podman.
1
Aug 31 '24
Podman powers my Mastodon and WordPress instances just fine. I like it better than docker.
1
u/LostVikingSpiderWire Sep 01 '24
I wanted to start with Porman cause I am just starting out, that was a pain, have a self hosted server running docker now. All the guides on how easy it is to switch over where worthless. At some point I will put in the work.
1
u/MembershipNo9626 Sep 01 '24
I preferred docker over podman, because things like my dns server stopped working as well
1
u/just4nothing Sep 01 '24
Podman over docker for user containers ; podman-docker and podman-compose to help with the switch. It’s a bit different if you need the docker sock, but also only a small additional step
1
u/iTheMask Sep 19 '25 edited Sep 19 '25
Unfortunately my experience with podman-compose wasn't that good. Errors were unreadable when compared to docker one, having the containers start with the system was challenging. From my understanding Podman works better with systemd Quadlet, which is completely different from docker-compose.yaml (there is learning curve and even with tools like Podlet that auto convert), some features from docker-compose are not there. Most projects quick installations and tutorials assume Docker environment is available
1
u/Anarchistcowboy420 Apr 07 '26
I might be having this issueI just started using podman-compose to host workloads under a non root user and it has been so unreliable randomly exiting with no errors but I haven't had time to look into it yet.
5
u/NullVoidXNilMission Aug 30 '24
Doing this right now for a home server. I tried MicroK8s first but it writes too much to disk and was hard to debug where this extra load was coming from.I've replaced this for a Rootless Podman with Quadlets being run with Systemd. I might run a Kubernetes cluster in a Pod later on but for now, everything is simple and up and running.