Live data from Hacker News

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

github.com

21–30 of 152 posts

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

#21

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?

And you can use systemd to be their supervisor via quadlet: https://www.redhat.com/en/blog/quadlet-podman

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

#22
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…

It is not user-friendly, but it works flawlessly once you get used to it.

I stayed away from docker all these years and tried podman from scratch last year after docker failed to work for a project I was experimenting with.

Took an hour to read various articles and get things working.

One thing I liked was it does not need sudo privileges or screw with the networking.

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

#23
post #17

Earlier quoted context omitted.

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.

What’s the point of using a distribution if you need to find back ports or build your own? Distros are, after all, mostly collections of installable software.

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

#24
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…

My container using is admittedly pretty simplistic (CRUD app with some REST services), but after initial setup I've found it to be extremely reliable and simple to use. They strive for 1:1 docker compat so I think it should be pretty easy to migrate.

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

#25
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…

It's almost a perfect drop-in replacement for Docker so I don't see why it would be any less "set-and-forget".

I only ever found one thing that didn't work with it at all - I think it was Gitlab's test docker images because they set up some VMs with Vagrant or something. Pretty niche anyway.

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

#26
Last year I transitioned all of my personal projects to use podman. The biggest surface area was converting CI to use podman to build my docker files, but also changed out tooling to use it (like having kind use it instead of docker).

For the most part this worked without issue. The only snag I ran into was my CI provider can't use oci formatted images. Podman lets you select the format of image to build, so I was able to work around this using the `--format=docker` flag.

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

#27
post #26

Last year I transitioned all of my personal projects to use podman. The biggest surface area was converting CI to use podman to build my docker files, but also changed out tooling to use it (like having kind use it instead of docker). For the most part this worked without issue. The only snag I ran into was my CI provider can't use oci formatted images. Podman lets you select the format of image to build, so I was ab…

That's a pretty cool migration story! I've been meaning to give podman a more serious look. The OCI image format issue is good to know about – hadn't considered that compatibility angle. I'm curious, did you notice any performance differences in your CI builds after switching?

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

#28
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…

The biggest difference in my (admittedly limited) experience, is that you need to start a "podman machine" before you can start running containers. This is architecturally different from Docker's use of a daemon, in ways I'm not qualified to explain in more detail.

It's an extra step, but not a painful one -- the default podman machine configuration seems to work pretty well out of the box for most things.

Honestly, for my use-case (running Subabase stack locally), it was seamless enough to switch that I'm a little surprised a bash script like this is necessary. On my Mac, I think it was simply `brew install podman` followed by `podman machine start` and then I got back to work as if I were still using docker.

By far the most tedious part of the switch was fully uninstalling Docker, and all its various startup programs & background processes.

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

#29
If you are using docker in this carefully assembled stateful way - you are doing it wrong. You should be using docker via scripts and IaaS tooling that will assert your desired setup from some kind of configuration. Meaning, you should be able to easily blow all of that away and recreate it with a single script. Likewise, a transition to podman should involve adjusting your scripts to re-assert that plan against podman instead of docker.

This is a cool tool for the decrepit hand-configured server with no documentation that has been running since 2017 untouched and needs an update... but I would encourage you to not fall into this trap to begin with.

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

#30
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…

I've found it very straight forward to work with. I run the cli on macOS to spin up ephemeral containers all the time for testing and simple tasks. Never had an issue.

In the spirit of the OP, I also run podman rootless on a home server running the usual home lab suspects with great success. I've taken to using the 'kube play' command to deploy the apps from kubernetes yaml and been pleased with the results.

Post reply on HN