I have a Dockerfile and want to embed one function user (bob) which has same uid (7200720) on the working VM
FROM docker.io/ubuntu:focal
RUN groupadd -g 2000 robots
RUN useradd -m -g 2000 -s /bin/bash -u 7200720 bob
USER bob
In docker, it works fine
$ docker build -t bob .
$ docker run bob id
uid=7200720(bob) gid=2000(robots) groups=2000(robots)
Now I try to migrate to podman env (podman v4.1.1)
$ podman build -t bob .
..
STEP 4/5: RUN useradd -m -g 2000 -s /bin/bash -u 7200720 bob
useradd: warning: chown on `/home/bob' failed: Invalid argument
..
Successfully tagged localhost/bob:latest
84e7b608fcf45ccedeb8624a88a1692013d5d41cf93954f296ce3351042e0513
..
$ podman run bob id
Error: OCI runtime error: runc: container_linux.go:380: starting container process caused: setup user: invalid argument
Are there anyway to make it working? (I do need big uid)