julien-duponchelle / docker-osx

Fast and easy installation of Docker on OS X
1.03k stars 70 forks source link

Can't set mounted directory permissions #55

Open tslater opened 10 years ago

tslater commented 10 years ago

When I mount a directory from my local fs

ex:

docker run -i -v /Users/tyler/docker/data:/var/lib/mysql 3af0265e97e1 /bin/bash

I get weird permissions issues:

drwxr-xr-x 1 1000 1000 68 May 2 16:17 mysql

Am I doing it wrong? Is my installation of the VM corrupted? Is this a bug?

tslater commented 10 years ago

I'm totally new to virtualbox and not good with hardware/mounting issues in general so I'd appreciate some help.

I'm wondering if this link would help: http://ubuntuforums.org/showthread.php?t=1398340

Look at comment number 7

tslater commented 10 years ago

Does this have anything to do with the fact that on the virtual machine all the files are owned by vagrant? Is there no way to allow permissions to my docker container?