- make dev envs privileged containers, effectively giving any random user root control over the machine where Hocus is hosted
- mount the Docker agent from host into the container, but that also allows the user to gain root control over the host machine
- use Linux user namespaces, and give you a root user with limited capabilities inside your dev env. That's actually what Gitpod - another Github Codespaces alternative - does. That root can't do everything though. It can't run Kubernetes, LocalStack, or the Elastic stack, because it can't modify some system limits.
A dev env backed by Firecracker is a full-fledged virtual machine that has none of the aforementioned drawbacks. It has some performance tradeoffs though, but we are working to minimize them as much as possible.
https://serverfault.com/questions/1043441/how-to-run-kvm-nes...