News for hackers. Stuff that matters.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by metadat on Saturday April 16, 2022 @06:19PM (#31056582)
Is the Podman CLI both command-compatible and flag-compatible with the Docker CLI?

If it is, or if there were a command translation layer to transform docker cli stanzas to the podman equivalent, I'd love to dump and forget about docker forever.

Please keep pushing Team Podman! Self-respecting nerds everywhere are rooting for (and counting on) you!

Re:Podman Desktop Companion GUI – Parity on All Major Operat... by buzzert on Saturday April 16, 2022 @06:30PM (#31056654)
It is! At least 99%, in my experience. The one big difference is that Podman is "daemonless", which is actually a huge advantage in a lot of cases. The one downside is that it won't automatically restart your containers if your host machine reboots.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by born2discover on Saturday April 16, 2022 @06:43PM (#31056748)
For that Podman provides a nifty little trick: `podman generate systemd`[0] which allows you to generate systemd unit files for your pods and/or containers.

Once generated and enabled, your pods/containers act as systemd services that can be started, stopped etc.

[0]: https://docs.podman.io/en/latest/markdown/podman-generate-sy...

Re:Podman Desktop Companion GUI – Parity on All Major Operat... by markonen on Sunday April 17, 2022 @04:20AM (#31059403)
This is no longer necessary as of Podman 3.3 or so--there's a single Podman systemd unit that will launch all containers that have restart=always.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by born2discover on Sunday April 17, 2022 @11:27AM (#31061478)
Interesting! Do you have by any chance a link the documentation about it, because so far all I could find are links to information about `podman generate systemd`.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by buzzert on Monday April 18, 2022 @01:36PM (#31073921)
That's awesome, I didn't know about that.

Looks like the service is called podman-restart.service on my system.

Re:Podman Desktop Companion GUI – Parity on All Major Operat... by 2OEH8eoCRo0 on Saturday April 16, 2022 @07:33PM (#31057027)
Yup. I use this for all my home server services like Plex, Adguard, etc.

I reboot my machine after kernel updates and everything comes up flawlessly.

Re:Podman Desktop Companion GUI – Parity on All Major Operat... by deno on Sunday April 17, 2022 @05:27AM (#31059617)
This generator has even better systemd integration: https://github.com/containers/quadlet
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by forty on Sunday April 17, 2022 @03:14AM (#31059119)
I want to mention the "-userns=keep-id" option of podman, which is a reason enough to use podman rather than docker on a Linux laptop.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by Klasiaster on Saturday April 16, 2022 @10:49PM (#31058029)
The "podman.service" systemd unit takes care of restarting containers that were marked so.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by Klasiaster on Wednesday April 27, 2022 @12:31AM (#31176318)
correction: podman-restart.service
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by hitpointdrew on Sunday April 17, 2022 @09:21AM (#31060635)
The biggest drawback for me is that podman cannot build containers.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by mathstuf on Monday April 18, 2022 @10:49AM (#31071390)
Huh? I use `podman build` all the time. Sure, it uses `buildah` in the backend, but does that really matter?
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by hitpointdrew on Tuesday April 19, 2022 @07:36PM (#31090797)
On Mac OS at least there is a bunch of hoops you have to jump through for build to work at all. If I recall you needed virtualbox installed (which I don't want). With docker it just works, you install docker you can run docker build, no extra troubleshooting, or hacky workarounds, just so you can use basic functionality.
Re:Podman Desktop Companion GUI – Parity on All Major Operat... by Spivak on Saturday April 16, 2022 @10:53PM (#31058051)
Even better. It”s API compatible with the docker daemon.

You can run podman-system-service and get a socket/port that you can point the official Docker CLI or any Docker library at and it will just work (tm).

Re:Podman Desktop Companion GUI – Parity on All Major Operat... by spockz on Sunday April 17, 2022 @03:41AM (#31059228)
I’ve run into many issues with tools when moving from docker to podman, mostly because they tried to be smart.

Some tools try to detect whether podman exists on the system or not and change their behaviour accordingly. I couldn’t get docker-compose to work properly either even though I had a socket exposed.

I would much prefer if the podman binary/cli also supported the compose command.

Then there are slight differences such as the registry that is used by default when resolving. Docker defaults to docker.io where podman asks. The same when an image is available in multiple registries.