diff --git a/cmd/runtimetest/main.go b/cmd/runtimetest/main.go index b754294a7..a0dd592a2 100644 --- a/cmd/runtimetest/main.go +++ b/cmd/runtimetest/main.go @@ -632,11 +632,13 @@ func getIDMappings(path string) ([]rspec.LinuxIDMapping, error) { idMap := strings.Fields(strings.TrimSpace(s.Text())) if len(idMap) == 3 { - hostID, err := strconv.ParseUint(idMap[0], 0, 32) + // "man 7 user_namespaces" explains the format of uid_map and gid_map: + // + containerID, err := strconv.ParseUint(idMap[0], 0, 32) if err != nil { return nil, err } - containerID, err := strconv.ParseUint(idMap[1], 0, 32) + hostID, err := strconv.ParseUint(idMap[1], 0, 32) if err != nil { return nil, err }