mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Merge pull request #2479 from giuseppe/rootless-give-uidmaptools-error
rootless, new[ug]idmap: on failure add output
This commit is contained in:
@ -93,7 +93,8 @@ func tryMappingTool(tool string, pid int, hostID int, mappings []idtools.IDMap)
|
|||||||
Args: args,
|
Args: args,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := cmd.Run(); err != nil {
|
if output, err := cmd.CombinedOutput(); err != nil {
|
||||||
|
logrus.Debugf("error from %s: %s", tool, output)
|
||||||
return errors.Wrapf(err, "cannot setup namespace using %s", tool)
|
return errors.Wrapf(err, "cannot setup namespace using %s", tool)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user