-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add privileged option #12
Comments
Seems pretty reasonable. The dind container runs with privileged, and I think in general this should be fine for reproducibility. I'll have a quick look over the docker Docs to see if to entails anything interesting, and probably knock it together in the next few days. Just for my interest, and if you can disclose, what kind of thing do you need the privileged flag for? |
Thanks! We need it to be able to manage loopback devices so the "virtualize" tool can run. |
Just taking a look into this at the moment. I'm trying to understand what's really needed here. In general Secondly, I've built some images before using loopback devices in a container (not for Metaswitch products - I think I was building my own mini-linux image by hand, as one does), and using privileged containers means your loopback setups persist over container lifetime (essentially escape the sandbox). This is also kind of a usability pain. I think I want to figure out how to do this, but I'm not convinced that priviliged is the way to go. I think the next step is to figure out if it's possible to get loopback devices working in a full container (perhaps More broadly, whats the general case here? I'm not sure loopback specific function is the way to go, but if we can figure out the right way to capture it generically, with a suitable reproducibility story, I can add that as the happy path feature. Interested in your thoughts! |
I just stumbled about this and don't understand all implications, so please excuse me if I am totally wrong. If the loopback device setup needs somehow If the loopback device setup rather needs networking capabilities, one of Compare: https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities |
@mviereck thanks - yeah, I think the precise permissions need to be understood. This refers to mounting of loopback block devices ( Loopback devices are fun because they need a kernel module that isn't loaded by default. In general, I probably need to think about how to solve these kinds of problems. |
Might be unnecessary now that |
--privileged
is the only Docker switch currently needed by our build process in floki. With the recent change to require the "local" option if Docker switches are used it would be useful if that could be an option instead.The text was updated successfully, but these errors were encountered: