4 ms·
Question for the experienced SREs: does it still make sense to learn docker instead of podman in 2023? I’m a relatively newly minted SRE and the eli5 explanati
by pknomad 4y ago
Question for the experienced SREs: does it still make sense to learn docker instead of podman in 2023?
I’m a relatively newly minted SRE and the eli5 explanation that I’ve gotten is that podman allows rootless containers and the only real disadvantage is that it lacks an equivalent version of ‘docker-compose’.
I understand that we ought to be using the right tool for the right job but to be frank there is only so many hours in a day for learning everything.
Also for the OP: thanks! I have an O’Reilly subscription so I’m covered but I’m sure there are folks who can use this book.
- rvieira 4y agore: docker-compose Have you tried https://github.com/containers/podman-compose https://github.com/containers/podman-compose ?
- pknomad 4y agoI... didn't know this was a thing. Thanks! I'll take a look :-)
- dontlaugh 4y agoI’ve tried to use it. There are enough small incompatibilities that I had to give up. I think podman needs to grow an integrated version that matches compose v2.
- rhatdan 4y agoYou should be able to runc docker-compose (v2) against a podman socket activated service.
- rhatdan 4y agoPodman believes the future is Kubernetes. It supports kubernetes.YAML just like regular Kubernetes and OpenShift. But runs the Pods and containers locally. Checkout podman kube play as an alternative to docker-compose, even has --build and down functionality similar to docker-compose. podman kube generate Generate kubernets.YAML from running pods and containers on your system.
- Volundr 4y agoYou can use the real docker-compose now: https://www.redhat.com/sysadmin/podman-docker-compose https://www.redhat.com/sysadmin/podman-docker-compose No need for podman-compose and it's incompatibilities.
- AtlasBarfed 4y agoThe tutorials flows for buildah + podman never seemed to work for building an image, naming it, then creating and running a container of that image based on the name, maybe podman compose will work.
- treffer 4y agoDocker is still what's used and what you will see e.g. at work. Podman is what you would want to learn on top.
- prmoustache 4y agoMore often than not this is kubernetes, openshift or ECS that is used at work more than docker which is more a local dev solution that is easily replaced by podman.
- bdhcuidbebe 4y agodocker is still the major player. also, podman still runs as root in many distros so i wouldnt care much for thar argument.
- rhatdan 4y agoPodman will run as root or rootless mode, depending on how you want to run your container. Each user on your system can run containers in their home dir, or if you need extra privileges you can run the containers as root. We have found very few Images at docker.io or quay.io that require podman to run as root to run them. Usually the issue is binding to a port < 1024, but even that can be handled with a sysctl.
- sathyabhat 4y agoPodman is supposed to be a drop-in replacement for Docker, and I’m still yet to see Podman in action at my production deploys (barring what I’ve heard once from a discord). So yes, still makes sense to learn Docker
- Proven 4y ago[dead]
- rhatdan 4y agoThe goal with Podman was to allow you to easily learn either and move back and forth. Similar to moving between web browsers or file systems.