Skip to content

Commit

Permalink
WithRemapperLabels: Update doc to mention overlay supports it
Browse files Browse the repository at this point in the history
Since we merged support for userns in:
	containerd#7679

overlay has been doing a chown for the rootfs using WithRemapperLabels.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
  • Loading branch information
rata authored and juliusl committed Jan 26, 2024
1 parent bad183b commit ce0d98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshotter_opts_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (

// WithRemapperLabels creates the labels used by any supporting snapshotter
// 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 {
return snapshots.WithLabels(map[string]string{
snapshots.LabelSnapshotUIDMapping: fmt.Sprintf("%d:%d:%d", ctrUID, hostUID, length),
Expand Down

0 comments on commit ce0d98d

Please sign in to comment.