Live data from Hacker News

Transitioning from Docker to Podman

developers.redhat.com

151–160 of 278 posts

Re: Transitioning from Docker to Podman

#151

Earlier quoted context omitted.

Your CI server running in a container that is itself executing Docker commands.

As mentioned elsewhere in the thread, this does not require DinD. You can connect to the host’s Docker daemon. (Other interfaces such as K8S are also much safer.)

Isn't exposing the host Docker daemon the security issue that people grouse about?

Re: Transitioning from Docker to Podman

#152
post #126

It's compatible with cgroups v2 unlike the standard Docker. If you're using Fedora, you have to add a kernel parameter to Grub to use cgroups v1 instead. RedHat seems to be pushing a standard ecosystem for Linux: systemd, Wayland, SELinux, GNOME, and now maybe podman. I've been on Linux for a while; it's a welcome change from all the fragmentation I'm used to. Whereas others try to work around the kernel and implemen…

I think governments prefer redhat because they are consistent and they accept gobs of cash to promise security patches to software that are past their support window.

Re: Transitioning from Docker to Podman

#153
post #29

Earlier quoted context omitted.

Maybe you are just too far into docker. I noticed that a lot of default workflows (needlessly) depended on docker running with privileges. One big reason for that seem to be Mac users that only know docker from inside a VM. However, if you think about what you're really needing for CI you will easily see that docker-in-docker gains you nothing. You can as well use plain docker (or podman). The same holds for privileg…

Okay, I want to build a container image using gitlab CI, which runs builds in docker. How would you like me to build an image without using docker in docker, or buildah in docker?

Kaniko :) no DIND weirdness or privileged containers necessary

Re: Transitioning from Docker to Podman

#154

Earlier quoted context omitted.

I think the ideal is using Nix to manage development dependencies and to handle building minimal docker images for deployment.

Why not just use nix at that point? You can at least retain the advantage of having truly immutable and reproducible builds. I use docker for most of my clients' work but for in house stuff I just use nix.

Well, just nix works pretty well unless you want to deploy to K8s or Fargate or similar.

Re: Transitioning from Docker to Podman

#155

Earlier quoted context omitted.

I think the ideal is using Nix to manage development dependencies and to handle building minimal docker images for deployment.

Why not just use nix at that point? You can at least retain the advantage of having truly immutable and reproducible builds. I use docker for most of my clients' work but for in house stuff I just use nix.

Docker and Nix are mostly orthogonal technologies though. Nix is an excellent build tool while Docker is useful as an universal software distribution format. They're really useful together because Nix is actually good at creating compact Docker images. But of course, if you don't have to worry much about distribution, it would be much nicer to stick with Nix as you've mentioned.

Re: Transitioning from Docker to Podman

#156
post #139

Earlier quoted context omitted.

Anecdotally, I've worked with developers at Redhat and Canonical, and the Redhat developers had passion. They really believed in open source and the linux community. In comparison Canonical seemed like Just Another Software Company to me.

My experience has consistently been the opposite.

This sounds anecdotal to me.

Re: Transitioning from Docker to Podman

#157
post #126

It's compatible with cgroups v2 unlike the standard Docker. If you're using Fedora, you have to add a kernel parameter to Grub to use cgroups v1 instead. RedHat seems to be pushing a standard ecosystem for Linux: systemd, Wayland, SELinux, GNOME, and now maybe podman. I've been on Linux for a while; it's a welcome change from all the fragmentation I'm used to. Whereas others try to work around the kernel and implemen…

I think governments prefer redhat because they are consistent and they accept gobs of cash to promise security patches to software that are past their support window.

Pretty much this, they know how the game is played and they play it.

Re: Transitioning from Docker to Podman

#159

Meta: there seems to be two kind of comments here... 1) why the hell would you want Docker-in-Docker 2) I can’t live without Docker-in-Docker

I think there's a disagreement about what Docker-in-Docker actually is. Some people think it's running a docker daemon inside a container, and others think it's accessing the host docker daemon from inside a container by mounting the docker socket as a volume

Re: Transitioning from Docker to Podman

#160

Sometimes I feel grateful having let all these ephemeral things things pass by without having needed to learn something that was going to stop being "in" so soon.

Containers are going to be there for a while and while the engine running the containers is not always the same, the command line Docker client and the Dockerfile DSL seem to become the standard for Linux containers.
Post reply on HN