Since 2018, there are seems some workaround exist: Allow the UID/GID to be changed · Issue #359 · nextcloud/docker · GitHub