Data permissions Docker for Windows

Jobel picture Jobel · Jan 13, 2018 · Viewed 9.6k times · Source

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.

Answer

h3xStream picture h3xStream · May 7, 2018

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