I am using Docker-machine on Mac for a PHP application. My code is shored in mac, and shared to docker-machine as volume.
This is my docker-compose.yml
app:
build: .
volumes:
- .:/var/www/html
My PHP application will create a folder in the shared volume and write some files in it.
The shared volume is set to permission 777 on mac (which I know I shouldn't do it, but I cannot solve the problem even with this)
After running the application, I got mkdir(): Permission denied
.
The newly created folder is in permission drwxr-xr-x, so my application cannot write any file in it.
Is there anyway to set the new folders to inherit folder permission from its parent?