WithRemapperLabels: Update doc to mention overlay supports it
Since we merged support for userns in: https://github.com/containerd/containerd/pull/7679 overlay has been doing a chown for the rootfs using WithRemapperLabels. Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
This commit is contained in:
parent
9d9903565a
commit
90087ac44f
@ -31,7 +31,7 @@ const (
|
|||||||
|
|
||||||
// WithRemapperLabels creates the labels used by any supporting snapshotter
|
// WithRemapperLabels creates the labels used by any supporting snapshotter
|
||||||
// to shift the filesystem ownership (user namespace mapping) automatically; currently
|
// to shift the filesystem ownership (user namespace mapping) automatically; currently
|
||||||
// supported by the fuse-overlayfs snapshotter
|
// supported by the fuse-overlayfs and overlay snapshotters
|
||||||
func WithRemapperLabels(ctrUID, hostUID, ctrGID, hostGID, length uint32) snapshots.Opt {
|
func WithRemapperLabels(ctrUID, hostUID, ctrGID, hostGID, length uint32) snapshots.Opt {
|
||||||
return snapshots.WithLabels(map[string]string{
|
return snapshots.WithLabels(map[string]string{
|
||||||
snapshots.LabelSnapshotUIDMapping: fmt.Sprintf("%d:%d:%d", ctrUID, hostUID, length),
|
snapshots.LabelSnapshotUIDMapping: fmt.Sprintf("%d:%d:%d", ctrUID, hostUID, length),
|
||||||
|
Loading…
Reference in New Issue
Block a user