| ▲ | Youden 6 hours ago | ||||||||||||||||
I think that's distro-specific. Some set it up with more secure defaults (unix socket with permissions), others less (TCP socket). | |||||||||||||||||
| ▲ | eddythompson80 6 hours ago | parent | next [-] | ||||||||||||||||
I don't really know of any distro that doesn't do that. All of Docker Inc. default installs and all of distros I know of don't automatically add you to the docker group. docker.com instructions has the infamous "linux post-install instructions" that explain and walk you though it. The tragedy is of course that when security and usability collide, 80/20 rule will apply where 80% of people will pick usability over security. I have worked with many with the title >= "Senior Engineers" who saw that page, read the explanation, and still had no idea what the ramifications of their changes were. "Yeah sure it said any user in the docker group will be able to get root on the host, but aren't containers isolated?" | |||||||||||||||||
| |||||||||||||||||
| ▲ | cpuguy83 6 hours ago | parent | prev | next [-] | ||||||||||||||||
No, docker access means root. You can use "rootless" mode, in this case it means root in a user namespace (that is not the "host" user namespace). | |||||||||||||||||
| ▲ | isityettime 5 hours ago | parent | prev [-] | ||||||||||||||||
That's not relevant. If you have access to the Docker daemon running as root, whether it's over a Unix socket or a TCP socket, you effectively have root. | |||||||||||||||||