mirror of https://github.com/containers/podman.git
Merge pull request #9788 from andrewshadura/rootless-friendly-error
[CI:DOCS] rootless: Tell the user what was led to the error, not just what it is
This commit is contained in:
commit
abda7961d6
|
@ -116,7 +116,7 @@ func tryMappingTool(uid bool, pid int, hostID int, mappings []idtools.IDMap) err
|
||||||
}
|
}
|
||||||
path, err := exec.LookPath(tool)
|
path, err := exec.LookPath(tool)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrapf(err, "cannot find %s", tool)
|
return errors.Wrapf(err, "command required for rootless mode with multiple IDs")
|
||||||
}
|
}
|
||||||
|
|
||||||
appendTriplet := func(l []string, a, b, c int) []string {
|
appendTriplet := func(l []string, a, b, c int) []string {
|
||||||
|
|
|
@ -203,12 +203,12 @@ Rootless Podman requires the newuidmap and newgidmap programs to be installed.
|
||||||
|
|
||||||
#### Symptom
|
#### Symptom
|
||||||
|
|
||||||
If you are running Podman or buildah as a not root user, you get an error complaining about
|
If you are running Podman or Buildah as a rootless user, you get an error complaining about
|
||||||
a missing newuidmap executable.
|
a missing newuidmap executable.
|
||||||
|
|
||||||
```
|
```
|
||||||
podman run -ti fedora sh
|
podman run -ti fedora sh
|
||||||
cannot find newuidmap: exec: "newuidmap": executable file not found in $PATH
|
command required for rootless mode with multiple IDs: exec: "newuidmap": executable file not found in $PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Solution
|
#### Solution
|
||||||
|
|
Loading…
Reference in New Issue