Feedback wanted on Docker hardening flags in my install scripts #205323
Replies: 2 comments
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
I checked the I wouldn't add a custom seccomp profile just for the sake of having one — Docker uses its built-in seccomp profile by default unless it's explicitly disabled. A couple of things I'd still consider:
The GPU boundary is inherently weaker than CPU-only isolation because the workload has to talk to the host NVIDIA driver, so I wouldn't describe GPU passthrough as equivalent to a VM security boundary. One thing I'd change in the detection logic: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've written a tool that starts a sandboxed container with GPU access and exposes a terminal over a link. Before I ask anyone else to run it, I'd like people who know Docker security better than I do to look at how I'm launching the container.
The two install scripts are here: https://github.com/PacifAIst/runsnack (Apache 2.0)
The relevant part is the docker run invocation — read-only root filesystem, all capabilities dropped, no-new-privileges, non-root user, with --gpus passthrough.
What I'm unsure about:
Also happy to hear if anyone tries it on a setup I haven't — ARM, WSL2, non-NVIDIA — but the flags are what I most want checked.
For transparency: the scripts are open, the agent inside the container is closed source and ships separately. The README says where that line falls.
Guidelines
All reactions