docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

Permission denied on Mac OSX #2660

Open ariault-blanchard opened 8 years ago

ariault-blanchard commented 8 years ago

Hi,

I just installed docker-machine on Mac OSX and when my PHP scripts want to write some files on the doc root folder, it seems that it doesn't have the right permissions ...

I've build my own image and run it with docker-compose.

When i was on Ubuntu, i didn't have to do something about permissions.

Is something different in Mac OSX ?

On Mac OSX my folder is 'Sites' with theses infos :

permission : 775

On docker-machine ssh, this folder infos are :

Does somebody fall in the same error ?

alexsapran commented 8 years ago

Hi,

This helped me with the same problem https://github.com/boot2docker/boot2docker/issues/587#issuecomment-114868208

I had create my own dockerfile for my container and added this

RUN usermod -u 1000 www-data 

Regards Alex.

ducdebreme commented 8 years ago

subscribing

aliannejadi commented 8 years ago

In my case I fixed it by: chmod +x script-address