ctr/tasks: support remapped UID/GID#7864
Conversation
|
Hi @Iceber. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@estesp @AkihiroSuda PTAL, Thanks |
|
@fuweid PTAL, Thanks |
|
@Iceber code looks good to me. But we have batch update in pass two months. Would you please rebase the main branch to run the CI again? Thanks |
Signed-off-by: Iceber Gu <[email protected]>
|
@fuweid rebased, and it is green |
Update fork-external/main with upstream main at commit [081d818](containerd@081d818) Marged upstream container/main into fork-external/main Related work items: containerd#7864, containerd#7954, containerd#8041, containerd#8044, containerd#8051, containerd#8062, containerd#8096, containerd#8103, containerd#8109, containerd#8110, containerd#8113, containerd#8114, containerd#8119, containerd#8120, containerd#8128, containerd#8130, containerd#8134, containerd#8140, containerd#8142, containerd#8143, containerd#8152, containerd#8154, containerd#8162, containerd#8164, containerd#8165, containerd#8172, containerd#8173, containerd#8177, containerd#8178, containerd#8181, containerd#8183, containerd#8187, containerd#8188, containerd#8189, containerd#8190, containerd#8191, containerd#8192, containerd#8193
ctr tasks startsupports resolving to uid/gid mappings from spec.For
ctr run, the NewContainer function will also set the uid/gid mapping.containerd/cmd/ctr/commands/run/run_unix.go
Lines 162 to 173 in 6c8c427
For uid/gid mappings that already exist in the container spec, there is no need for the
ctr tasks startcommand to ignore it