diff options
author | Douglas Schilling Landgraf <dougsland@redhat.com> | 2020-06-20 21:09:21 -0400 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-06-24 14:33:11 -0400 |
commit | 5d9ec1ce7929dc2921a4ceb49261243b59c45d1a (patch) | |
tree | fdc51ae9af54a3d6fc4575f99d58ce99599472e3 | |
parent | 37abb88aa02773e76ccb87183c8ac6cbb9cf2071 (diff) | |
download | podman-5d9ec1ce7929dc2921a4ceb49261243b59c45d1a.tar.gz podman-5d9ec1ce7929dc2921a4ceb49261243b59c45d1a.tar.bz2 podman-5d9ec1ce7929dc2921a4ceb49261243b59c45d1a.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.go | 3 |
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() |