We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 333d05d + 4e999f2 commit 3532c53Copy full SHA for 3532c53
cmd/runtimetest/main.go
@@ -632,11 +632,13 @@ func getIDMappings(path string) ([]rspec.LinuxIDMapping, error) {
632
633
idMap := strings.Fields(strings.TrimSpace(s.Text()))
634
if len(idMap) == 3 {
635
- hostID, err := strconv.ParseUint(idMap[0], 0, 32)
+ // "man 7 user_namespaces" explains the format of uid_map and gid_map:
636
+ // <containerID> <hostID> <mapSize>
637
+ containerID, err := strconv.ParseUint(idMap[0], 0, 32)
638
if err != nil {
639
return nil, err
640
}
- containerID, err := strconv.ParseUint(idMap[1], 0, 32)
641
+ hostID, err := strconv.ParseUint(idMap[1], 0, 32)
642
643
644
0 commit comments