I'm trying to run postgresql. after checking their document, I added this volume mount
/path/to/data:/var/lib/postgresql/18/docker
my container failed immedeately,
chmod: changing permissions of '/var/run/postgresql': Operation not permitted
The files belonging to this database system will be owned by user "postgres".
...
2025-11-29 12:04:40.102 UTC [73] FATAL: data directory "/var/lib/postgresql/18/docker" has invalid permissions
after checking document, by default it use 999:999 to run this container. which is not existing in my physical machine.
how can I properly set folder /path/to/dataowner?
I believe most of our containers has such an issue, rather than run with root what's the best practice?