MCPcopy
hub / github.com/containerd/containerd / WithUserNSRemappedSnapshotView

Function WithUserNSRemappedSnapshotView

client/container_opts_unix.go:59–61  ·  view source on GitHub ↗

WithUserNSRemappedSnapshotView is similar to WithUserNSRemappedSnapshot but rootfs is mounted as read-only.

(id string, i Image, uidmaps, gidmaps []specs.LinuxIDMapping)

Source from the content-addressed store, hash-verified

57
58// WithUserNSRemappedSnapshotView is similar to WithUserNSRemappedSnapshot but rootfs is mounted as read-only.
59func WithUserNSRemappedSnapshotView(id string, i Image, uidmaps, gidmaps []specs.LinuxIDMapping) NewContainerOpts {
60 return withRemappedSnapshotBase(id, i, uidmaps, gidmaps, true)
61}
62
63func withRemappedSnapshotBase(id string, i Image, uidmaps, gidmaps []specs.LinuxIDMapping, readonly bool) NewContainerOpts {
64 return func(ctx context.Context, client *Client, c *containers.Container) error {

Callers 1

testUserNamespacesFunction · 0.85

Calls 1

withRemappedSnapshotBaseFunction · 0.85

Tested by 1

testUserNamespacesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…