From 90087ac44f461e1fe05b3aef24e7c75a0a4fb05c Mon Sep 17 00:00:00 2001 From: Rodrigo Campos Date: Fri, 7 Jul 2023 18:18:09 +0200 Subject: [PATCH] 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 --- snapshotter_opts_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshotter_opts_unix.go b/snapshotter_opts_unix.go index 4739e192f..2dff9b424 100644 --- a/snapshotter_opts_unix.go +++ b/snapshotter_opts_unix.go @@ -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),