4 ms·
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 c
by metadat 5y ago
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!
- buzzert 5y agoIt 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.
- born2discover 5y agoFor 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-systemd.1.html https://docs.podman.io/en/latest/markdown/podman-generate-sy...
- 2OEH8eoCRo0 5y agoYup. 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.
- markonen 5y agoThis 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.
- born2discover 5y agoInteresting! 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`.
- buzzert 5y agoThat's awesome, I didn't know about that. Looks like the service is called podman-restart.service on my system.
- deno 5y agoThis generator has even better systemd integration: https://github.com/containers/quadlet https://github.com/containers/quadlet
- Klasiaster 5y agoThe "podman.service" systemd unit takes care of restarting containers that were marked so.
- Klasiaster 5y agocorrection: podman-restart.service
- forty 5y agoI 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.
- hitpointdrew 5y agoThe biggest drawback for me is that podman cannot build containers.
- mathstuf 5y agoHuh? I use `podman build` all the time. Sure, it uses `buildah` in the backend, but does that really matter?
- hitpointdrew 5y agoOn 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.
- Spivak 5y agoEven 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).
- spockz 5y agoI’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.