Move runtime and Mounts to container config
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
3551d4c0b9
commit
788e19d251
6 changed files with 56 additions and 72 deletions
|
@ -420,7 +420,7 @@ func getRootIDs(s *specs.Spec) (int, int, error) {
|
|||
return uid, gid, nil
|
||||
}
|
||||
|
||||
func hostIDFromMap(id uint32, mp []specs.IDMapping) int {
|
||||
func hostIDFromMap(id uint32, mp []specs.LinuxIDMapping) int {
|
||||
for _, m := range mp {
|
||||
if (id >= m.ContainerID) && (id <= (m.ContainerID + m.Size - 1)) {
|
||||
return int(m.HostID + (id - m.ContainerID))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue