WithRemappedSnapshot creates a new snapshot and remaps the uid/gid for the filesystem to be used by a container with user namespaces
(id string, i Image, uid, gid uint32)
| 37 | // WithRemappedSnapshot creates a new snapshot and remaps the uid/gid for the |
| 38 | // filesystem to be used by a container with user namespaces |
| 39 | func WithRemappedSnapshot(id string, i Image, uid, gid uint32) NewContainerOpts { |
| 40 | uidmaps := []specs.LinuxIDMapping{{ContainerID: 0, HostID: uid, Size: 65536}} |
| 41 | gidmaps := []specs.LinuxIDMapping{{ContainerID: 0, HostID: gid, Size: 65536}} |
| 42 | return withRemappedSnapshotBase(id, i, uidmaps, gidmaps, false) |
| 43 | } |
| 44 | |
| 45 | // WithUserNSRemappedSnapshot creates a new snapshot and remaps the uid/gid for the |
| 46 | // filesystem to be used by a container with user namespaces |
searching dependent graphs…