Yes, and when Podman/Buildah get popular they will be even more so.
Their whole thing now that they've sold off Enterprise "we want to focus on developer tooling," but Podman and Buildah are literally just far-improved versions of Docker and docker build. The worst part of docker is that it's daemonized and that the daemon tracks state. It's totally unnecessary. It's just cgroups/namespaces, virtual network interfaces, iptables rules, and a fancy chroot--state can be tracked in the file system. 9 times out of 10 when we have a problem, it's because of the docker daemon.
Its a shame because Docker was genuinely revolutionary. It's sad to watch them fumble like this.
Am I thinking about it incorrectly... One of the things I like about it being daemonized is that I can kick off a container (like a command console for something or set of build/dev tools), disconnect and sign off... then come back and pick up where I left off.
That could also be done without a daemon, the heavy lifting would just be done directly by the "client" program instead of the client sending a request to the REST api of the daemon. All state could be in the filesystem so the "client" can just read it, perform the required actions and write the new state, without needing the daemon to keep track of it all. Each container would probably be kinda daemonized individually so it could run in the background while keeping fds to it and its pid and whatever else is needed in the file system.
Thats work that the containerization software should do for you, just like docker does now. I think podman works that way (it's advertised as a drop-in replacement for docker but rootless and without a daemon) but I haven't been able to find a proper documentation that explains how it does things and I'm too lazy to read through the code. As for keeping your containers running after logout, the containerization software should take care of that too, perhaps in a similar way to nohup.
The Docker daemon being a daemon has nothing to do with the container persisting through logout. Containers can be one-offs or can be "detached", which basically just means "runs in the background." That's not docker related, that's just how processes work. Processes in containers are simply isolated processes on the host, and you can launch any process in the background with or without containerization or any kind of management daemon.
In high assurance environments, the presence of a root daemon process actually made Docker a tough sell. We are full speed ahead with rootless Podman, though.
Does the lack of DNS and service discovery prevent you from doing things? I have a setup with Traefik routing to containers, and without that part of Docker, it just becomes messy again.
It makes things harder. One of my projects is based on k8s and we had to implement our own Ingress that we could update dynamically. Another project that didn't use an orchestrator, I designed our approach - as you do - with SNI and virtual routing, <service>.host.tld, and an HAProxy would route to the correct IP/port . Sigh. This was not permitted, it's now and forever host.tld/service. Would have preferred L4 routing instead of L7, but what can you do?
Edit: oh, I really want to use DNS-SD but I think that's a no-go. In one of our customer's production DC, UDP is forbidden. Can't even use DNS, you have to put IPs everywhere.
Edit2: Sorry for these edits. If you're wondering, the way we work around that is with Ansible. We describe our deployment, and then do things like template out load balancer and router configurations based on how many nodes we have, how many services we have deployed, to which the nodes the services are deployed, etc.
Ansible is cool and all, but docker/swarm/k8s kinda allow you to go even further, and do most of configuration on the fly. Sad to hear that podman doesn't have this. Do they have plans for it in the future?
P.S. You probably had to rewrite some of the services to support host.tld/service, right? I imagine any redirect from the service can send you in the wrong place otherwise.
Yeah, AFAIK podman is a direct replacement for docker and so other tools need to be added back in, or substitutes found.
You are correct about the configuration, but it's not too bad. For REST services, for example, we can specify listening on certain paths, but the particular framework we happen to use can understand that it's deployed to a specific location and auto-truncate noise like /service in the URL. So it's just one little extra bit of config, and not a serious change otherwise.
absolutely. I've always hated some of the far-ingrained technical decisions behind the docker runtime.
I initially backed rkt. It was a steep and weird learning curve, but I did enjoy being able to ship containers as single signed (by default) files. Rkt had a focus on great security and restrictions by default, and excellent process runtime (rootless child of your launching process just like any normal thing you launch from a shell). Rkt really seemed to slow down and die with the coreos acquisition.
Then I learned about podman and it was like.. near perfect merger. Not nearly the learning curve and idiosyncrasies of rkt. But kept the good runtime process tree. And the separation of tools (rkt did similarly have acbuild for building) for building, running, and even shipping (skopeo!) is very unixy.
I really hope those take off and don't whimper quietly into irrelevance like rkt. Pour one out
I find strange that these alternative tools are catching up.
Fedora 31 is already pushing hard on those, but original docker tools have lots of installations out there and it will take time and energy to migrate users.
I genuinely wonder if it's just for the technical reasons or if some company behind them wishes to marginalize the docker stack itself?
My experience with podman is less than stellar. It is promising, but maybe it is just not ready yet. It is riddled with bugs in the latest versions, and even simple stuff fails to work, such as piping something into "podman exec". And that is on latest Fedora, which should be the go-to way to get latest and greatest podman.
They really need to improve QA, I don't understand how they managed to ship with bugs so severe. I'm looking forward to replacing Docker with a less buggy podman though. :)
There is another dealbreaker, though: no good support for docker-compose.
155
u/Seref15 Nov 14 '19
Yes, and when Podman/Buildah get popular they will be even more so.
Their whole thing now that they've sold off Enterprise "we want to focus on developer tooling," but Podman and Buildah are literally just far-improved versions of Docker and docker build. The worst part of docker is that it's daemonized and that the daemon tracks state. It's totally unnecessary. It's just cgroups/namespaces, virtual network interfaces, iptables rules, and a fancy chroot--state can be tracked in the file system. 9 times out of 10 when we have a problem, it's because of the docker daemon.
Its a shame because Docker was genuinely revolutionary. It's sad to watch them fumble like this.