4 ms·
I never tried Podman. I guess the benefit is that it runs on demand and not as a always on demon? How does one install podman on Debian and how does one get a
by MrThoughtful 2y ago
I never tried Podman. I guess the benefit is that it runs on demand and not as a always on demon?
How does one install podman on Debian and how does one get a Debian image to run inside podman?
- natebc 2y ago1) Podman is available in default debian repos. https://packages.debian.org/bookworm/podman https://packages.debian.org/bookworm/podman 2) `podman run --entrypoint="" --rm -it debian:stable /bin/bash` in most instances you can just alias docker to podman and carry on. It uses OCI formatted images just like docker and uses the same registry infrastructure that docker uses.
- aragilar 2y agoInstalling `podman-docker` will do the aliasing for you.
- MrThoughtful 2y agoWhere does it pull the Debian image from? I would think the Docker infrastructure is financed by Docker Inc as a marketing tool for their paid services? Are they ok when other software utilizes it?
- natebc 2y agoBy default it uses whatever is in registries.conf for unqualified-search-registries. You can specify in the fully qualified image name if you'd like. I can't speak to what Docker Inc. is okay with or not.
- FireInsight 2y agoOn my system it asks between a few different public registries, and dockerhub/docker.io is one of the choices. t's all public infrastructure for hosting container images, I don't think Docker-the-company minds other software interfacing with it. After all, they get to call them 'Docker images', 'Dockerfiles', and put their branding everywhere. At this point
- pzmarzly 2y agoRuns on demand, doesn't require root, can be nested, usually uses newer and simpler primitives (e.g. a few nftables rules in Podman vs iptables spaghetti in Docker). In my experience it is ~90% compatible with Docker. The author explains the practical differences in the blog post https://www.edu4rdshl.dev/posts/from-docker-to-podman-full-migration-to-rootless/ https://www.edu4rdshl.dev/posts/from-docker-to-podman-full-m... It is usually easier to install - most distros ship relatively recent version of Podman, while Docker is split between docker.io (ancient), docker-ce (free but non in repos) and docker-ee. Not everything is rosy, some tools expect to be talking to real Docker and don't get fooled by `ln -s docker podman`. But it is almost there. Regarding Debian, just `sudo apt install podman && podman run -it debian` - see https://wiki.debian.org/Podman https://wiki.debian.org/Podman
- wink 2y agoCareful, the version in Debian 12 is old and apparently just barely predates the "good" versions. I had so many problems that I went back to Docker, because current Podman didn't seem to be trivially installable on Debian 12.
- exceptione 2y agoIn general, if one is happy to run very old versions of software Debian can be your driver. If not, you are in for pain in my experience. (That is also why Ubuntu as default Linux is a tragedy, old bugs and missing features mean that it is not really attractive to officially support Linux for vendors.)
- wink 2y agoI've not experienced something on this scale for many years, "Debian stable packages are so outdated" is mostly a meme. Debian 12 was 1y old when I did this and very often you can relatively easily find a backport or build one - but I think in this case it was either glibc or kernel, that's why "just run upstream" didn't work.
- 2y ago
- 2OEH8eoCRo0 2y agoapt install podman podman run -it debian bash
- vaylian 2y ago> I guess the benefit is that it runs on demand and not as a always on demon? Podman has much better systemd integration: https://www.redhat.com/en/blog/quadlet-podman https://www.redhat.com/en/blog/quadlet-podman
- qudat 2y agoAnd you can use systemd to be their supervisor via quadlet: https://www.redhat.com/en/blog/quadlet-podman https://www.redhat.com/en/blog/quadlet-podman