Terminal apps in sandbox
Can terminal apps be sandboxed similarly to how macOS sandboxes apps? I need to be able to browse. I need to be able to open files. I need to be able to save files. Can access scope be limited without hindering productivity at an acceptable balance?
Can Docker be used for this? Docker uses macOS Hypervisor. Docker is sub-second fast.
Links
- https://copyninja.info/blog/docker-dev-environment.html
- https://medium.com/better-programming/php-how-to-run-your-entire-development-environment-in-docker-containers-on-macos-787784e94f9a
- https://jmmv.dev/2019/11/macos-sandbox-exec.html
- https://www.davd.io/os-x-run-any-command-in-a-sandbox/
- https://www.objc.io/issues/14-mac/sandbox-scripting/