Skip to content

Porting uid/gid mapping ID conversion logic from idtools #146

Open
@henry118

Description

@henry118

I am working on a feature in containerd to support multiple uid/gid mappings containerd/containerd#10307.

My current implementation of the ID conversion logic is based on the idtools code in Moby.

Since the moby/sys package also contains code for ID mapping, such as parsing /etc/{subuid,subuid} and the IDMap type, would it be nice to also include the logic for ID conversions (ie. ToHost()/ToContainer() funcs)? This way containerd can have much cleaner implementation.

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions