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