Post by @mcc@mastodon.social

mcc
@mcc @mastodon.social

So I got today a pretty aggressive sell for moving all my online services to Docker [or podman, whatever, IDK]. Which is something I was already considering for security reasons, but it was argued to me some of the advantages of nix/guix I was interested in (clear separation of content, configuration, and software on my server, easy redeployment) I could get with just Docker.

Okay. Actually this all made sense. But now I have a question.

Why the fuck do I need Linux if I have docker? (1/3)

Replying to @mcc@mastodon.social

@mcc to add a different perspective on the security part: Once you have a container image you have a snapshot of all the vulnerabilities available to the software it is running (base distro, runtime).

Replying to @mcc@mastodon.social

@mcc of course! just something else to take into account, because when the things ran on the OS you just upgrade the OS, but now you re-build and re-deploy every image

Replying to @categulario@mstdn.mx
mcc
@mcc @mastodon.social

@categulario That makes it sound like I don't want Docker. I want to be able to apt-get upgrade or something like it and just have all the software update.

Replying to @mcc@mastodon.social
Just a trash panda 🦝
@trashpanda @m.alittlenook.net
Unlisted en edited

@mcc @categulario I think that docker asks one to take on a different way of looking at things than just using a VPS. I've heard it described as pet vs livestock. Containers are destroyed and rebuilt frequently, and images/containers should be built to accommodate that. Anything persistent should be in a volume.

Replying to @mcc@mastodon.social

@mcc yeah no, not a chance. I think there is discussion about other technologies that solve this problem. For me the reason to use containers is not security but to have an environment packed in an immutable box that I can move around. Because some of the applications that I deploy depend on stuff that is otherwise annoying to setup every time. So having a stable runtime from an image is useful, but not inherently more secure, although it is possible to gain better isolation.