News for hackers. Stuff that matters.
Re:Run More Stuff in Docker by sjy on Sunday December 27, 2020 @02:25AM (#25549485)
> You can't really reproduce that with any popular desktop operating system.

If you’re running Docker, you’re running Linux, and you can use the same kernel features as Docker to sandbox applications yourself. This way, you only incur the overhead of a separate network namespace and filesystem if you actually need it. Services can be sandboxed with a few lines of configuration in a drop-in unit, and applications can be run with a shell script that calls `systemd-run`, just like the `docker run` shell scripts suggested in the article.

Re:Run More Stuff in Docker by remexre on Sunday December 27, 2020 @02:50AM (#25549572)
Do you know of a tool that can do this for arbitrary programs? Maybe something like CARE [0] to find what the program should be accessing, then building the appropriate systemd configuration files?

[0]: https://proot-me.github.io/care/

Re:Run More Stuff in Docker by jcelerier on Sunday December 27, 2020 @02:53AM (#25549590)
> If you’re running Docker, you’re running Linux

As slow as it is some people apparently enjoy running docker from win / mac

Re:Run More Stuff in Docker by mulmen on Sunday December 27, 2020 @03:17AM (#25549656)
Docker needs Linux to work. On Mac/Windows containers run in a Linux virtual machine.
Re:Run More Stuff in Docker by slavik81 on Sunday December 27, 2020 @03:49AM (#25549787)
I thought so too, but apparently support for native Windows containers has existed for a while now. e.g. https://poweruser.blog/lightweight-windows-containers-using-...
Re:Run More Stuff in Docker by mulmen on Sunday December 27, 2020 @03:25PM (#25553962)
Neat! I had no idea this was a thing, thanks for sharing.
Re:Run More Stuff in Docker by jcelerier on Sunday December 27, 2020 @05:02AM (#25550047)
I wouldn't call "running an app in a linux VM on windows", "running linux". As a user, your main interface with your computer is windows, which is what "i'm running windows" means, and obviously "you can use the same kernel features as Docker to sandbox applications yourself" wouldn't work, e.g. you couldn't sandbox photoshop like that.