mirror of https://github.com/containers/podman.git
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:
parent
bc256d9319
commit
11e237bc3a
|
@ -166,7 +166,8 @@ func GetConfiguredMappings() ([]idtools.IDMap, []idtools.IDMap, error) {
|
||||||
}
|
}
|
||||||
mappings, err := idtools.NewIDMappings(username, username)
|
mappings, err := idtools.NewIDMappings(username, username)
|
||||||
if err != nil {
|
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 {
|
} else {
|
||||||
uids = mappings.UIDs()
|
uids = mappings.UIDs()
|
||||||
gids = mappings.GIDs()
|
gids = mappings.GIDs()
|
||||||
|
|
Loading…
Reference in New Issue