[Feature] Support to run Ray worker container in a rootless container #20820
Labels
enhancement
Request for new feature and/or capability
stale
The issue is stale. It will be closed within 7 days unless there are further conversation
Search before asking
Description
Now we can start Ray process in an isolated container, but
root
is required. It is unfortunate.We need to run Ray worker rootless container. In Ray worker scenarios, what we need is an isolated rootfs and some cgroup configs.
rootfs
We can reuse container image, and use overlay to create a new rootfs.
In Ubuntu Distro (linux kernel 5.0+), we can mount a overlayfs in unprivileged user-ns. But other distro like centos/fedora not support it now.
cgroup
For cgroupv2, a unprivileged can create his sub cgroup.###
Use case
In a multi-tenant Ray cluster, each job may require different libraries and runtime. And immutable infrastructure can help users to deploy their job easily.
The container image provide an isolated filesystem and it is immutable. In most scenarios, Ray run without privilege, so it can't create normal container like Docker.
We need to support run worker in a slim container.
Related issues
#14077
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: