mirror of
https://github.com/containers/podman.git
synced 2025-06-03 03:07:56 +08:00
rootless_linux: improve error message
Improve the error message for rootless mode. Git-Url: https://github.com/containers/libpod/issues/6572 Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
This commit is contained in:
@ -166,7 +166,8 @@ func GetConfiguredMappings() ([]idtools.IDMap, []idtools.IDMap, error) {
|
||||
}
|
||||
mappings, err := idtools.NewIDMappings(username, username)
|
||||
if err != nil {
|
||||
logrus.Errorf("cannot find mappings for user %s: %v", username, err)
|
||||
logrus.Errorf(
|
||||
"cannot find UID/GID for user %s: %v - check rootless mode in man pages.", username, err)
|
||||
} else {
|
||||
uids = mappings.UIDs()
|
||||
gids = mappings.GIDs()
|
||||
|
Reference in New Issue
Block a user