mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
Merge pull request #2731 from giuseppe/rootless-wrong-user
troubleshooting: explain setup user: invalid argument
This commit is contained in:
@ -210,18 +210,17 @@ cannot find newuidmap: exec: "newuidmap": executable file not found in $PATH
|
|||||||
|
|
||||||
Install a version of shadow-utils that includes these executables. Note RHEL7 and Centos 7 will not have support for this until RHEL7.7 is released.
|
Install a version of shadow-utils that includes these executables. Note RHEL7 and Centos 7 will not have support for this until RHEL7.7 is released.
|
||||||
|
|
||||||
### 10) podman fails to run in user namespace because /etc/subuid is not properly populated.
|
### 10) rootless setup user: invalid argument
|
||||||
|
|
||||||
Rootless podman requires the user running it to have a range of UIDs listed in /etc/subuid and /etc/subgid.
|
Rootless podman requires the user running it to have a range of UIDs listed in /etc/subuid and /etc/subgid.
|
||||||
|
|
||||||
#### Symptom
|
#### Symptom
|
||||||
|
|
||||||
If you are running podman or buildah as a user, you get an error complaining about
|
An user, either via --user or through the default configured for the image, is not mapped inside the namespace.
|
||||||
a missing subuid ranges in /etc/subuid.
|
|
||||||
|
|
||||||
```
|
```
|
||||||
podman run -ti fedora sh
|
podman run --rm -ti --user 1000000 alpine echo hi
|
||||||
No subuid ranges found for user "johndoe" in /etc/subuid
|
Error: container create failed: container_linux.go:344: starting container process caused "setup user: invalid argument"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Solution
|
#### Solution
|
||||||
|
Reference in New Issue
Block a user