In den Docker Container kommt man via
univention-app shell nextcloud
Dort z.B.:
root@nextc-........:/# sudo -u www-data /var/www/html/occ files:scan --all
Scanning files for 2 users
Starting scan for user 1 out of 2 (Administrator)
Starting scan for user 2 out of 2 (nc_admin)
+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 10 | 14 | 01:00:00 |
+---------+-------+--------------+