Live data from Hacker News

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

github.com

51–60 of 152 posts

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

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

Same here. I migrated maybe 5-6 projects from docker to buildah and podman about 2 years ago and never looked back.

Unlike other posts I've seen around I haven't really encountered issues with CI or local handling of images - though I am using the most bare bones of CI, SourceHut. And I actually feel better about using shell scripts for building the images to a Dockerfile.

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

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

The one edge case I know of (and have run into) is that podman push doesn't support the --all-tags flag. They have also said they do not plan to implement it. It's annoying because that flag is useful for CI scripts (we give multiple tags to the same build), but not the end of the world either.

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

#56

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.

Eh, starting with k8s just because I might want kubernetes in five years is a hard sell, given how easy swarm is to setup. devops that does not fulfill an immediate business need should be delayed because that labor is hella expensive.

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

#58

just a pro tip "if it aint broken dont fix it" if you have a working docker file(s) do not migrate unless there is a ground breaking need

Security might be such a need, but that depends on how important that is for you. On top, docker auto-fiddles with your firewall.

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

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

Same here. I migrated maybe 5-6 projects from docker to buildah and podman about 2 years ago and never looked back. Unlike other posts I've seen around I haven't really encountered issues with CI or local handling of images - though I am using the most bare bones of CI, SourceHut. And I actually feel better about using shell scripts for building the images to a Dockerfile.

Oh hey! I have used your activity pub library, it's very nice :)

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

#60
post #4

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?

1) Podman is available in default debian repos. 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.

Where 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?

Post reply on HN