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

Programmer Humor

32000 readers
799 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 9 points 10 months ago (2 children)

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

[–] UNWILLING_PARTICIPANT 4 points 10 months ago

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

[–] [email protected] 3 points 10 months 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.