google / gvisor

Application Kernel for Containers

Home Page:https://gvisor.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rootless podman does not work with runsc

sfc-gh-hyu opened this issue · comments

Description

I am trying to use podman to start runsc but failed. Here is the error I got with using either systemd or cgroupfs as the cgroup manager.

[hyu@fedora ~]$ podman --cgroup-manager systemd --runtime runsc run --systemd false  -it docker.io/library/ubuntu:latest 
Error: OCI runtime error: creating container: write unix @: sendmsg: broken pipe
[hyu@fedora ~]$ podman --cgroup-manager cgroupfs --runtime runsc run --systemd false  -it docker.io/library/ubuntu:latest 
Error: creating container: configuring cgroup: open /sys/fs/cgroup/cgroup.subtree_control: permission denied: OCI permission denied

Running podman with sudo is fine.

I saw the there is an existing issue #311, which is not closed, but with slightly different error.

Is this feature related to a specific bug?

No

Do you have a specific solution in mind?

No response

runsc requires root to work. There is a --rootless flag, but it only works for runsc do. There are more details on the reasoning in #311. There needs to be some dedicated work done to properly support rootless in runsc.

Duplicate of #311

A friendly reminder that this issue had no activity for 120 days.