Syncing folders with Windows 11 Docker

Nextcloud version Latest Just Installed
Operating system and version Windows 11
Apache or nginx version Docker

Is this the first time you’ve seen this error? Y

Steps to replicate it:

  1. Installed NC
  2. Copied Folders into the physical drive under folder Photos
  3. I don’t see them being populated on the web login on NextCloud.
  4. Uploaded Image into an Album on Web Login. That I can see is synced to the physical drive folder Photos.

I saw some documentation on “scan” via occ code. I have no idea where to enter the occ code on a Windows 11. Under cmd it is not accepted as a command.

It is similar to your second thread:

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

I guess I am too much of a beginner on this.

I tried running:
C:\Users\danie>docker occ files:scan
docker: ‘occ’ is not a docker command.
See ‘docker --help’
tried: C:\Users\danie>docker exec -ti --user www-data nextcloud-app /var/www/html/occ files:scan –
Error response from daemon: No such container: nextcloud-app
Also tried:
C:\Users\danie>docker exec --user www-data nc php occ files:scan --all
Error response from daemon: No such container: NC
What am I doing wrong?

SUCCESS. If you need it, this might help

in cmd I typed:
docker exec --user www-data -it nextcloud-aio-nextcloud php occ files:scan --all

got the following.
Starting scan for user 1 out of 1 (admin)
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
| 191 | 5573 | 0 | 5716 | 10 | 0 | 00:00:11 |

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.