4 ms·
Docker could do that for you. Windows also got/is getting a lightweight sandbox though I don't recall how to invoke it.
by munchbunny 7y ago
Docker could do that for you. Windows also got/is getting a lightweight sandbox though I don't recall how to invoke it.
- naikrovek 7y agoDocker is not intended to be a sandbox in any way. https://news.ycombinator.com/item?id=9087421 https://news.ycombinator.com/item?id=9087421
- maxdamantus 7y agoIf you're running docker with the "userns-remap" option, it is a form of sandbox insofar as any userspace isolation provided by Linux is a sandbox; you would probably need a root privilege exploit to break out of it. If there are root privelege exploits in Linux, they should obviously be fixed. Of course, we should be aware that exploits are quite likely to exist, since much of Linux was designed without a notion of namespaces. For me, the main issue with docker in terms of security is that it's not clear what security you're giving up when running containers (eg, various projects expect you to do `docker run -v /var/run/docker.sock:/var/run/docker.sock ...`, and things like `docker-compose` essentially specify arbitrary invocations of containers). When ways of escaping are discovered, they get fixed, since those escaping mechanisms are not really considered part of the execution model for containers.
- syntonym 7y agoThe discussion is a bit dated, docker now supports user namespaces such that apps can run as root inside a container, but are not root outside of the container.
- leonlag 7y agoI'm running podman(docker replacement) on fedora for many things. It can run as a user without root permissions, does not need a daemon and containers get their own SELinux policy by the fedora devs. Far from perfect, definitely better than nothing.