-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to start runc when setting uidmappings/gidmappings #252
Comments
On Mon, Sep 07, 2015 at 06:09:32PM -0700, Wang Qilin wrote:
This is probably a duplicate of #225. Try dropping the ‘gid’ entry |
@wking ,thank you! you mean #225 ? I change the
but exists other error:
|
@wangkirin Do you have uid 1002 on your host? I think that's the problem. |
Read only cgroup mount should work in userns, current problem is caused by: #136 But I don't know why we can't remount /sys/fs/cgroup in userns, maybe related with that mentioned kernel fix , haven't checked yet. |
@hqhq YES, 1002 is the uid of current user in my OS |
On Tue, Sep 08, 2015 at 12:25:44AM -0700, Wang Qilin wrote: Yes, sorry. I've updated my inital comment to avoid more confusion
I see a few runC issues that mention pivot_root, but none that talk |
@wangkirin I used your config and got exactly the same error, then I found out that's because I don't have uid 1002 on my host, so I changed it to 1000 which is my current user's id, then runc start successfully. |
@hqhq @wking |
@wangkirin Still wired, runc won't request the owner of rootfs to be the user on the host,
Maybe ping @estesp see if that's a regression. |
@hqhq In userns you cannot have the host root(or any unmapped user) as the owner of your files(except proc, as it's not virtualized). Any files owned by an unmapped user will be unusable by all users inside the container. |
Ran into this same issue ( |
Since this issue hasn't had any activity in the past year, I'm closing it. Please feel free to re-open it. As for the actual issue, I believe this has been fixed (I've tested the user namespace code quite extensively in #774 -- and it works in quite a lot of cases). It was quite likely that you had some permission issue with |
runtime-config-linux.md: fix the type of cpus and mems
I try to set
uidmappings
andgidmappings
inconfig.json
to test the user namespace, but when I startrunc
, there is following error information:my config.json is :
The text was updated successfully, but these errors were encountered: