Skip to content

add user namespace remapping through Labels#5

Merged
AkihiroSuda merged 1 commit intocontainerd:masterfrom
liaojh1998:mapping
Jan 7, 2020
Merged

add user namespace remapping through Labels#5
AkihiroSuda merged 1 commit intocontainerd:masterfrom
liaojh1998:mapping

Conversation

@liaojh1998
Copy link
Copy Markdown
Contributor

@liaojh1998 liaojh1998 commented Dec 12, 2019

There's a big overhead from using Lchown for user namespace remapping. The overhead can be reduced from using fuse-overlayfs's dynamic remapping through mounting.

To be used in conjunction with containerd/containerd#3885 and containerd/containerd#3765.

Signed-off-by: Jie Hao Liao [email protected]

Please let me know if any checks are needed and what's the best way to test this.

Comment thread fuseoverlayfs.go Outdated
@liaojh1998
Copy link
Copy Markdown
Contributor Author

Changed fuse to fuse3

Comment thread fuseoverlayfs.go
}
if mapping, ok := info.Labels["containerd.io/snapshot/gidmapping"]; ok {
options = append(options, fmt.Sprintf("gidmapping=%s", mapping))
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dmcgowan Label convention SGTY? Then I'd like to merge this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Label looks good

@AkihiroSuda AkihiroSuda merged commit d6348ac into containerd:master Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants