5 ms·
> https://github.com/ashishb/amazing-sandbox https://github.com/ashishb/amazing-sandbox Does your Docker backend run commands in rootless containers? I skimmed
by pritambaral 3mo ago
> https://github.com/ashishb/amazing-sandbox https://github.com/ashishb/amazing-sandbox
Does your Docker backend run commands in rootless containers? I skimmed the code but didn't see anything to confirm this.
- ashishb 3mo agoRight now, not. Eventually, they will. You can pass your favorite rootless Docker image using `--custom-docker-image` CLI parameter.
- pritambaral 3mo agoI hope you see the (IMO, obvious) problem. 1. Docker (or any Linux container runtime, for that matter) is not intended for, designed for, or effective as a security boundary. 2. Root containers run as root on the host. The "sandboxed" processes have full capabilities, as far as the kernel is concerned with them.
- ashishb 3mo ago> 1. Docker (or any Linux container runtime, for that matter) is not intended for, designed for, or effective as a security boundary. This has been discussed in detail earlier - https://news.ycombinator.com/item?id=47612726 https://news.ycombinator.com/item?id=47612726 Further, on Mac OS, you can use `--mode=native` for Mac's native sandboxing (seatbelt). > 2. Root containers run as root on the host. The "sandboxed" processes have full capabilities, as far as the kernel is concerned with them. That's not always the case. You can run rootless containers or you can use containerization like Podman which does not run as root.
- pritambaral 3mo ago> You can run rootless containers or you can use containerization like Podman which does not run as root. Yes, now you get my point. Do you run rootless containers (with the Docker backed) or do you run "root" containers?