firecracker-containerd
firecracker-containerd copied to clipboard
jailer improvements
This is a list of improvements that should be implemented once this PR has been merged, #249
- The jailer should use a user namespace, but currently does not.
- ~~Jailer should allow for a custom configuration of jailing through the
CreateVM
API. Maybe allow complete passing of the configuration. However, this would require writing a bunch of proto definitions. We want memory and cpu to be configurable, as well as numa nodes.~~ We aren't going to copy the runc config into our request as that is really large and most of the fields may not be used. The cpuset.mems and cpuset.cpus has been completed by #334 - ~~The jailer should use numa nodes. I believe this can be specified in runc's configuration~~ - Done via #334
- ~~Instead of hard linking we should use bind mounts in the jailer handler.~~ Decided that copying was the best solution for now, which is already done. If this changes in the future we can add a separate issue illustrating that.
- ~~
CreateVMRequest
should allow passing of the netns as a parameter.~~ - Done via #305
We should also update the getting-started guide and/or other docs with details on how to use the jailer