1532
submitted 2 years ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 113 points 2 years ago

There's no root login. It's all containers.

[-] [email protected] 52 points 2 years ago

It's containers all the way down!

[-] [email protected] 32 points 2 years ago
[-] [email protected] 14 points 2 years ago

I deploy my docker containers in .mkv files.

[-] [email protected] 12 points 2 years ago

The containers still run an OS, have proprietary application code on them, and have memory that probably contains other user's data in it. Not saying it's likely, but containers don't really fix much in the way of gaining privileged access to steal information.

[-] [email protected] 19 points 2 years ago

That's why it's containers... in containers

It's like wearing 2 helmets. If 1 helmet is good, imagine the protection of 2 helmets!

[-] [email protected] 9 points 2 years ago

So is running it on actual hardware basically rawdoggin?

[-] [email protected] 6 points 2 years ago

Wow what an analogy lol

[-] [email protected] 6 points 2 years ago

What if those helmets are watermelon helmets

[-] [email protected] 2 points 2 years ago

Then two would still be better than one ๐Ÿ˜‰

[-] [email protected] 5 points 2 years ago

The OS in a container is usually pretty barebones though. Great containers usually use distroless base images. https://github.com/GoogleContainerTools/distroless

[-] [email protected] 3 points 2 years ago

Ah, so there is something even more barebones than Alpine

[-] [email protected] 2 points 2 years ago* (last edited 2 years ago)

Sure, there's also the scratch image, which is entirely empty... So if your app is just a single statically linked binary, your entire container contents can be a single binary.

The busybox image is also more barebones than alpine, but still has a couple of basic tools.

[-] [email protected] 9 points 2 years ago

The containers will have a root login, but the ssh port won't be open.

[-] [email protected] 4 points 2 years ago

I doubt they even have a root user. Just whatever system packagea are required baked into the image

[-] [email protected] 3 points 2 years ago

Containers can be entirely without anything. Some containers only contain the binary that gets executed. But many containers do contain pretty much a full distribution, but I have yet to see a container with a password hash in its /etc/shadow file...

So while the container has a root account, it doesn't have any login at all, no password, no ssh key, nothing.

this post was submitted on 20 Oct 2023
1532 points (98.9% liked)

Programmer Humor

37483 readers
247 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS