aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@redhat.com>2020-06-20 21:09:21 -0400
committerDouglas Schilling Landgraf <dougsland@redhat.com>2020-06-21 06:35:25 -0400
commit11e237bc3a6ab7ccb3a05ea5ffb1b6b046c1bac3 (patch)
tree251d9310ad3334b2d6a3b1fa0e5613aa386dbefa
parentbc256d93195bc289b888cee37dc3e82e68c0e8a0 (diff)
downloadpodman-11e237bc3a6ab7ccb3a05ea5ffb1b6b046c1bac3.tar.gz
podman-11e237bc3a6ab7ccb3a05ea5ffb1b6b046c1bac3.tar.bz2
podman-11e237bc3a6ab7ccb3a05ea5ffb1b6b046c1bac3.zip
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>
-rw-r--r--pkg/rootless/rootless_linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/rootless/rootless_linux.go b/pkg/rootless/rootless_linux.go
index 3de136f12..01f5b1206 100644
--- a/pkg/rootless/rootless_linux.go
+++ b/pkg/rootless/rootless_linux.go
@@ -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()