SvenDowideit / dockerfiles

dockerfiles that I use
http://fosiki.com
MIT License
212 stars 59 forks source link

Possible to write from OSX mount? #27

Open tonivdv opened 9 years ago

tonivdv commented 9 years ago

Hello,

Maybe this is a stupid question, but I was wondering if it's possible to write files from OSX mounts (cifs). When I do it I get permissions denied errors.

Or is it only read-only?

tonivdv commented 9 years ago

@SvenDowideit any ideas?

SvenDowideit commented 9 years ago

are you mounting the share as guest? or using the configured username and password?

tonivdv commented 9 years ago

@SvenDowideit Euhm yes with the guest. Not remembering where I found the tuto, but it talked only about guest. Is that the issue?

joostfarla commented 9 years ago

I was wondering the same. How can I expose a mounted directory to OSX (or Windows) with full read/write permissions (so I can work with a code IDE in this directory)? By default it seems read-only indeed. I'm using a separate data volume container, using the busybox image.

hokkey commented 9 years ago

I have the same issue in OSX.

liverbool commented 9 years ago

@SvenDowideit ping...

TimSoethout commented 9 years ago

I'm having the same issue. I figure it has something to do with not having the right permissions on the folder, which was initially created by a different container.

robink commented 9 years ago

Any update here?

TimSoethout commented 9 years ago

This is how I worked around the issue: (sorry syntax is of the top of my head. Might not work directly, but hopefully you'll get the gist.)

robincle commented 9 years ago

+1 to this. We've the same problem. The mount is read-only! Anyone has access data to connect not via guest access?

matthieupinte commented 9 years ago

Any update/info about this issue?

robink commented 9 years ago

For me it was related to the shared folder path. Everything goes well if the shared data is under /home/docker (on the docker host) but I have write issues if the shared folder is directly on /

sbarnden commented 9 years ago

Had this issue on Windows 7.

In the end I found it was issues with the data volume permissions.

Steps I did (from tutorial): docker run -v /oradata --name oradata busybox true docker run --rm -v /usr/local/bin/docker:/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba oradata docker run -I -t --volumes-from oradata oracle-4.8 bash

Could connect to the volume in windows with (docker ip)\oradata Tried to create a file and failed. From the interactive container I had, checked the volume and could create a file there and see it on windows.

Check volume access permissions: ls -ltr drwxr-xr-x 2 root root 4096 Jun 3 13:58 oradata

Changed the permission from within the box: chmod 777 /oradata

After that I could write to the volume from where it was mounted in Windows.