Add option to generate userns enabled spec#764
Add option to generate userns enabled spec#764hqhq wants to merge 1 commit intoopencontainers:masterfrom
Conversation
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
|
LGTM. Presumably we'll add all of the other hacks we need to get unprivileged containers here eventually? |
|
I remember there are two other hacks,
Now I don't need these two hacks and can run unprivileged container with |
|
Wasn't the first only required when gid=5 wasn't mapped? It is in this patch, so guess that's why it's fine. |
|
@codido |
|
@cyphar unmapped uids/gids can't really be used in userns - I don't think you can setuid/setgid to an unmapped uid/gid. |
|
@codido Yes, sorry. My mistake, I forgot how unmapped ids work. Presumably we can generate the |
|
@cyphar Guess that's just because the tty group is usually 5, at least on Fedora: |
|
Hmmm. That means we can't really generate the argument. But if the @hqhq Do you think we should show a single-user unprivileged container with |
| { | ||
| HostID: 1000, | ||
| ContainerID: 0, | ||
| Size: 10, |
There was a problem hiding this comment.
We would want the size to be much bigger. Say a block of 32k or so.
|
Also, not sure if we want to add more options to runc spec. |
|
+1 to having this in |
|
Yeah, the intention for doing this is a lot of people asked me: hey, I have a config created by If |
…meout config: Require strictly-positive timeout values
Signed-off-by: Qiang Huang h.huangqiang@huawei.com