Live data from Hacker News

Fly To Podman: a script that will help you to migrate from Docker

github.com

11–20 of 152 posts

Re: Fly To Podman: a script that will help you to migrate from Docker

#11

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?

> 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

Re: Fly To Podman: a script that will help you to migrate from Docker

#12
post #7
post #5

Earlier quoted context omitted.

Runs 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-m... It is usually easier to install - most distros ship relatively recent versi…

Careful, 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.

I did not have this same experience, all my VPS successfully run Debian’s podman package with zero issue running containers.

Re: Fly To Podman: a script that will help you to migrate from Docker

#15
post #14
post #13

What if I'm using docker-compose?

Use podman-compose? https://docs.podman.io/en/latest/markdown/podman-compose.1.h... https://github.com/containers/podman-compose

Or just use docker compose with podman. There's a section in arch's doc about that https://wiki.archlinux.org/title/Podman

Re: Fly To Podman: a script that will help you to migrate from Docker

#16
Has Podman become more user friendly in recent years? I gave it a go about three or four years ago now when Docker began their commercial push (which I don't have an issue with).

This was for some hobby project, so I didn't spend a ton of time, but it definitely wasn't as set-and-forget as Docker was. I believe I had to set up a separate VM or something? This was on Linux as the host OS too. It's been a while, so apologies for the hazy memory.

Or it's very possible that I botched the entire setup. In my perfect world, it's a quick install and then `podman run`. Maybe it's time to give it another go.

Re: Fly To Podman: a script that will help you to migrate from Docker

#17
post #7

Earlier quoted context omitted.

Careful, 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.

In 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.)

I'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.

Re: Fly To Podman: a script that will help you to migrate from Docker

#18
post #7

Earlier quoted context omitted.

Careful, 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.

I did not have this same experience, all my VPS successfully run Debian’s podman package with zero issue running containers.

Glad to hear. When I brought it up somewhere I got exact the "oh you're running 4.x - we also had that problem, but 5 works fine".

Re: Fly To Podman: a script that will help you to migrate from Docker

#19
post #16

Has Podman become more user friendly in recent years? I gave it a go about three or four years ago now when Docker began their commercial push (which I don't have an issue with). This was for some hobby project, so I didn't spend a ton of time, but it definitely wasn't as set-and-forget as Docker was. I believe I had to set up a separate VM or something? This was on Linux as the host OS too. It's been a while, so apo…

This is mostly solved I think. I run Podman Desktop on macOS and just aliased Docker to Podman in zshrc and it just works for me. I don’t do any local k8s or anything crazy, but it works with my compose files. I’m going to guess there’s still rough edges if you want GPU passthrough or something with complex networking, but for a server and a database running together it matches Docker itself.

Re: Fly To Podman: a script that will help you to migrate from Docker

#20
post #16

Has Podman become more user friendly in recent years? I gave it a go about three or four years ago now when Docker began their commercial push (which I don't have an issue with). This was for some hobby project, so I didn't spend a ton of time, but it definitely wasn't as set-and-forget as Docker was. I believe I had to set up a separate VM or something? This was on Linux as the host OS too. It's been a while, so apo…

On NixOS it was as trivial as `podman.enable = true;`. IIRC on Arch it was just a matter of installing the package.

It's all daemonless, rootless and runs directly with your host kernel so it should be as simple as it an application of this kind gets. Probably you followed some instructions somewhere that involved whatever the podman equivalent for docker-machine is?

Post reply on HN