The quay mirror registry cannot be installed in rootless mode on RHEL 8 or RHEL 9. This is because it uses a command which cannot be run as a non-root user. The task is here:
setfacl wouldn't be the correct command even if it could be run as a non-root user. To properly set the UID/GID of the storage directory for use with podman rootless mode, the command is:
```
podman unshare chown 26:26 /opt/quay/database/
```
This is because the postgres container uses UID 26 but the proper UID/GID mapping of 26 into the container space is a function of the non-root user's base UID/GID as shown here in this command
```
podman unshare cat /proc/self/uid_map
0 1000 1
1 100000 65536
```
In this case, podman unshare will change the directories permissions to 100026:100026. If however, my non-root user's subuid/gid mapping started at a different value, podman unshare will handle all of that for me.
setfacl 26 won't work because the UID/GIDs are relative.