WithRemappedSnapshotView is similar to WithRemappedSnapshot but rootfs is mounted as read-only.
(id string, i Image, uid, gid uint32)
| 50 | |
| 51 | // WithRemappedSnapshotView is similar to WithRemappedSnapshot but rootfs is mounted as read-only. |
| 52 | func WithRemappedSnapshotView(id string, i Image, uid, gid uint32) NewContainerOpts { |
| 53 | uidmaps := []specs.LinuxIDMapping{{ContainerID: 0, HostID: uid, Size: 65536}} |
| 54 | gidmaps := []specs.LinuxIDMapping{{ContainerID: 0, HostID: gid, Size: 65536}} |
| 55 | return withRemappedSnapshotBase(id, i, uidmaps, gidmaps, true) |
| 56 | } |
| 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 { |
searching dependent graphs…