-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document why we require root to run this #8
Comments
Nope, we can run as non-root as long as the docker socket is accessible. Access to the docker socket does make us 'root equivalent' though. We might have to belong to the 'docker' group maybe? I don't know what permissions bind mounted docker socket usually has |
This can probably then be closed by documenting in #7, as we may require being root.
Does it matter if the docker socket is exposed via another Pod, a daemonset on the node, rather than being directly installed on the node? Or is it? Hmm... I'm very vague about these matters and would love to acquire some overview about this. |
It needs access to the docker socket and access to measure disk usage (~ |
It's a unix or network socket. It doesn't matter who it's owned by, if you're allowed to connect to it you can run any Docker command, which means you've effectively got administrative control of the Docker host (this is one of the issues rootless Docker or Podman solve). |
Our Dockerfile runs the script as root, we shouldn't.
But, maybe we must? I'm not sure. Are we expected to run this container with a mounted docker socket that requires us to run as root or something?
The text was updated successfully, but these errors were encountered: