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
@mcc @mastodon.social

Put a different way, I've got a couple VPSes. I've got services/sites running on each one. Each is hard nailed to the VPS it's running on. In the docker/podman world I guess I'd have a container for each of my sites (hopefully I don't need an nginx for each site), and a container for mysql or something, and a container for the two non-apache app servers I run. That'sโ€ฆ everything I do on the VPS, except log in and fuck around with vim. Could vim, and man, and gcc, be a container? (2/3)

Replying to @mcc@mastodon.social

@mcc I run containers for all my deployments (podman). Usually one per service. The more complicated ones sometimes need multiple, which I run in a pod (a bundle of containers that see each other in the same localhost). It is rare, but for some services I do run an extra nginx that puts things together and is a container of itself.

As for the last question, avoid tooling as much as possible inside containers. Tooling for you is tooling for the attackers.

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

@categulario What if I put the tooling inside its own container and therefore the attackers can't use it because they're not in that container

Replying to @mcc@mastodon.social

@mcc yea, possible, then to actually use it you would plug another container's volume(s) into that one to use. Not very ergonomic but sometimes useful.

I do that sometimes, I created an image that has my tools and setup, but it is seldom used in practice.