Docker owncloud/server does not start

Steps to reproduce

  1. I had a good working docker-composer on MacOS
  2. Something went wrong and I decided to cleanup everything containers/persistent directory
  3. Now owncloud does not create the file structure in /mnt/data

Expected behavior - output from docker logs

Create a file structure in /mnt/data

Actual behaviour

Creating volume folders…
Creating hook folders…
Waiting for MySQL…
services are ready!
Waiting for Redis…
services are ready!
Removing custom folder…
Linking custom folder…
Removing config folder…
Linking config folder…
Writing config file…
open /mnt/data/config/overwrite.config.php: no such file or directory

owncloud/server:10.6

Just got the idea and looks like it worked. the host directory I gave all 0777 instead of 0755 even files inside the directory created with my user name