Syncing folders with Windows 11 Docker

It is similar to your second thread:

you need to execute your occ command within docker
docker occ ...
or
docker /path/to/nextcloud/occ ...