Fixing mismatch

Signed-off-by: Noel Georgi <18496730+frezbo@users.noreply.github.com>
docker-18.09
Noel Georgi 2018-07-06 17:48:17 +05:30
parent cda0a64eca
commit 8753e76a4d
No known key found for this signature in database
GPG Key ID: 191E427F5073D09E
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ func configureUserNS(spec *specs.Spec, uidMap, gidMap []user.IDMap) error {
ContainerID: uint32(uNextContainerID),
Size: uint32(u.Count),
})
uNextContainerID += u.Count
uNextContainerID += int64(u.Count)
}
sort.Slice(gidMap, func(i, j int) bool { return gidMap[i].ID < gidMap[j].ID })
gNextContainerID := int64(0)
@ -74,7 +74,7 @@ func configureUserNS(spec *specs.Spec, uidMap, gidMap []user.IDMap) error {
ContainerID: uint32(gNextContainerID),
Size: uint32(g.Count),
})
gNextContainerID += g.Count
gNextContainerID += int64(g.Count)
}
return nil
}