Live data from Hacker News

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

github.com

41–50 of 152 posts

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

#41
post #35

Earlier quoted context omitted.

No to the first, yes to the second. Podman has a daemon mode that works like like the Docker daemon, no systemd necessary.

> Podman has a daemon mode ... Can you provide any documentation about that?

They're probably referring to the podman.socket, which isn't quite like a daemon-mode but means it can emulate it pretty well. Unless there is some daemon mode I missed that got added, but I'd be rather surprised at that.

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

#43
post #39
post #23

Earlier quoted context omitted.

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.

The point is that it works 95% of the time, or probably more like 98%. If this is a e.g. webserver and I only need my fastcgi backend built by myself, I can still have reverse proxy, database, and every other package be done by the distro. No one said you need backports. More like: If it fits 90% and one package doesn't work, you get it from somewhere else - that doesn't invalidate the concept of a distro for me. YMM…

Honest question: wouldn't that make you more nervous you now arrived at an unknown/unsupported configuration?

Boring stability is the goal, but if Debian does not fit as is, then why not find a total package that is somewhat more cutting edge but does fit together? Especially given the fact that Debian does customization to upstream, so esoteric times esoteric.

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

#44

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 podm…

Yeah in theory. In practice that never happens for anything other than a vercel app.

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

#45
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.

In fact, there is even a package "podman-docker" that will alias podman to docker so most of your commands will usually work without modification. (of course, there are always the edge cases)

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

#46
post #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.

[deleted]

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

#47
post #35

Earlier quoted context omitted.

No to the first, yes to the second. Podman has a daemon mode that works like like the Docker daemon, no systemd necessary.

> Podman has a daemon mode ... Can you provide any documentation about that?

Yep!

https://docs.podman.io/en/latest/markdown/podman-system-serv...

In places where you're doing a `dnf install podman` all you typically need to do is start the service and then point either the podman cli or docker cli directly at it. In Fedora for example it's podman.service.

I honestly prefer using the official docker cli when talking to podman.

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

#48
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.

I could not get LocalStack to work on Podman, to my chagrin. And no, doing the "sudo touch /etc/containers/nodocker" thing didn't solve it.

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

#49

Does Podman have a swarm counterpart, or does running services still effectively require configuring systemd and then switching to kubernetes for multi-machine?

Last I checked there's no native swarm equivalent in podman. Your best bet is nomad (much simpler than k8s if you want to spin some local setups) or kubernetes.

kubernetes

Podman can work with local pods, using the same yaml as for K8s. Not quite docker swarm, but useful for local testing IME when k8s is the eventual target.

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

#50
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 only snag I hit regularly is me forgetting to set :z or :Z on my podman volumes to make it play well with SELinux.

I used to use docker compose, but migrated to podman quadlets. The only thing I miss is being able to define every container I run in a pod in the .pod file itself. Having it integrate with systemd is great.

Post reply on HN