Search code examples
linuxwindowsdockerpermissionsowncloud

Data permissions Docker for Windows


I'm using Docker for Windows, with owncloud container, and I shared volumes, setting up on docker-compose.yml, in order to persist the data. Extract from my docker-compose.yml

` owncloud:

image: jobel/owncloud:1.1

links: 

    - db:db

ports:

    - 8002:80   

volumes:

    - f:/Program Files/Docker/Docker VM/owncloudconfig:/var/www/html

    - f:/Program Files/Docker/Docker VM/owncloudconfig/apps:/var/www/html/apps

    - f:/Program Files/Docker/Docker VM/owncloudconfig/config:/var/www/html/config

    - f:/Program Files/Docker/Docker VM/owncloudconfig/data:/var/www/html/data

`

Data are present but when I try to connect on my web browser, it says : "Your data folder can be read by other users. Please change the directory permissions in 0770 mode so that the content is not listed by other users." (translate fr->eng)

But how can I change the windows folder permissions to 0770 ? ;(

Or what are the others solutions?

Thank you in advance for your answer.


Solution

  • In the Windows client, you can configure the docker to allow read/write on specific drives. In your case, it is the F: drive. This should fix your permissions problem.

    enter image description here