Re:Docker is dead? Podman – an alternative tool?
by jcastro on Saturday June 04, 2022 @12:19AM
(#31616950)
Is there any config to set up this way or do you literally just run podman on the socket and it just knows what to do?
[ Parent
| on HN ]
Re:Docker is dead? Podman – an alternative tool?
by pkulak on Saturday June 04, 2022 @02:17AM
(#31617545)
You can set it as systemd socket service, so it doesn’t even run until something tries to connect.
That said, I don’t even bother with that. Podman can run K8s configs, and they are yaml too, only slightly more verbose than a compose file, if you strip everything out you don’t need. The CLI is nicer than compose too, with proper commands instead of tying up a terminal until a ctrl-c.
Re:Docker is dead? Podman – an alternative tool?
by sureglymop on Saturday June 04, 2022 @03:10AM
(#31617825)
So you can use kubectl but it talks to podman and not to the api of a k8s cluster? Or does it have its own cli?
Re:Docker is dead? Podman – an alternative tool?
by qbasic_forever on Saturday June 04, 2022 @03:58AM
(#31618034)
There's apparently a 'podman play kube' command that can take some k8s yaml like pod descriptions and instantiate them directly: https://docs.podman.io/en/latest/markdown/podman-play-kube.1... I hadn't heard of this until now but it sounds pretty nifty!
Re:Docker is dead? Podman – an alternative tool?
by pkulak on Saturday June 04, 2022 @11:28AM
(#31621456)
Exactly. Here's a pod.yaml I use for testing a service at work:
https://gist.github.com/pkulak/d22407b887461b416891b78fb3793...
It can probably be even more concise, but I stopped stripping stuff out here.
Re:Docker is dead? Podman – an alternative tool?
by arinlen on Saturday June 04, 2022 @06:06AM
(#31618678)
> There's apparently a 'podman play kube' command that can take some k8s yaml like pod descriptions and instantiate them directly
Wow that's a heck of a killer feature.
Once Podmam implements a replacement for Docker's docker swarm, Docker is effectively deprecated.
Re:Docker is dead? Podman – an alternative tool?
by qbasic_forever on Saturday June 04, 2022 @12:41PM
(#31622467)
I honestly wouldn't put much faith in swarm being viable for long. Mirantis basically stopped working on it before they broke docker apart. The current docker company seems much more focused on developer experience tooling, not distributed systems. There are some longstanding swarm issues and bugs, particularly with changing configurations or one time jobs, that will probably never be fixed. I'd go straight to kubernetes and skip swarm personally. Stuff like k3s make kubernetes much easier to deploy at a small scale. Or I'd look at Hashi's nomad if something about k8s was really a blocker.
Re:Docker is dead? Podman – an alternative tool?
by piyh on Saturday June 04, 2022 @01:05AM
(#31617174)
podman replacing the docker socket
Re:Docker is dead? Podman – an alternative tool?
by cipherboy on Saturday June 04, 2022 @09:33AM
(#31620139)
As a fun fact, you can also run:
$ systemctl --user enable --now podman.socket
$ export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock
and get a rootless, Docker-compatible socket. If you're running, e.g., a test suite written against the Go Moby APIs, this will execute the containers with Podman rather than with the system daemon.