logoalt Hacker News

Maakuthtoday at 9:07 AM2 repliesview on HN

The docker CLI tool is normally executed with user privileges, but there's dockerd, a daemon running as root that actually does the container execution.


Replies

jeswintoday at 11:47 AM

Installing docker doesn't require root.

"Rootless mode lets you run the Docker daemon and containers as a non-root user."

https://docs.docker.com/engine/security/rootless/

This is how docker is best installed on Linux, and there's a convenience script for it as well (https://get.docker.com/rootless). I am surprised that's not how people are using docker.

show 1 reply
cyanydeeztoday at 9:41 AM

im not sure people understand the security vectors. a user with docker permissions effectively has root permissions.

often, docker in docker is used to manage docker orchestration. putinng a user in a docker and peoviding docker access is security through obscurity.

on the flip side, i see people blindly installing tools and skills not understanding they are pushing context and capabilities without any significant security features.

Imagine mythos is actually exceptional hacker. if you give it a well crafted malicious prompt, its going to even more insecure.

the double edged sword is really fascinating to think about

show 1 reply