Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to write from OSX mount? #27

Open
tonivdv opened this issue Mar 10, 2015 · 13 comments
Open

Possible to write from OSX mount? #27

tonivdv opened this issue Mar 10, 2015 · 13 comments

Comments

@tonivdv
Copy link

tonivdv commented Mar 10, 2015

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
Copy link
Author

tonivdv commented Mar 18, 2015

@SvenDowideit any ideas?

@SvenDowideit
Copy link
Owner

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

@tonivdv
Copy link
Author

tonivdv commented Mar 19, 2015

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

@joostfarla
Copy link

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
Copy link

hokkey commented Apr 1, 2015

I have the same issue in OSX.

@liverbool
Copy link

@SvenDowideit ping...

@TimSoethout
Copy link

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
Copy link

robink commented May 18, 2015

Any update here?

@TimSoethout
Copy link

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.)

  • Run an container with override command /bin/bash: docker run -t same-image --interactive --volumes-from=<your other container> /bin/bash
  • Now inside the container your can edit and inspect the file system
    If you want to get files to the volume use something like python -m SimpleHTTPServer which will start an http-server on <host machine>:8000
  • wget the files in your interactive docker instance (note that wget is not always available on all base images

@robincle
Copy link

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

@matthieupinte
Copy link

Any update/info about this issue?

@robink
Copy link

robink commented May 29, 2015

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
Copy link

sbarnden commented Jun 3, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants