Giter Club home page Giter Club logo

volume-sharer's People

Contributors

gdiepen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

volume-sharer's Issues

Share a non-docker volume

I'd like to use this image to also share local folders on the docker host.
How could one proceed to do so?

I've tried to bind mount a local path to a submount in /docker_volumes with no success.

docker run --name volume-sharer --rm -v /var/lib/docker/volumes:/docker_volumes -v /home/myName/test:/docker_volumes/uniqueNameTest -p 139:139 -p 445:445 -v /var/run/docker.sock:/var/run/docker.sock -d gdiepen/volume-sharer

process_usershare_file: stat of /var/lib/samba/usershares/storage failed. No such file or directory

I was repeatedly getting the following line in the container logs:

process_usershare_file: stat of /var/lib/samba/usershares/storage failed. No such file or directory

Solution/fix appears to be adding

usershare path =

to the smb.conf file. Which is pretty easy to do with the volume shared :)

My solution was sourced from here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=772154
The gist:

This is not a bug but a feature.
The samba 3.6.x has as default: usershare path = /var/lib/samba/usershares
if a user enters a wrong path somewhere it falls back to the usershares and this share cannot be found there.
To get rid of this message do the following.
Define the following and disable usershares. in smb.conf (global)
usershare path =

Maybe there's a bad path coming from somewhere that is triggering this fallback?
Despite the log message, the container was still functioning as expected, from a user point of view.

Run it on MAC

Hi,

I just tried to run it on my mac

docker run -d --rm \
--name volume-sharer \
-p 139:139 -p 445:445 \
-v /var/lib/docker/volumes:/docker_volumes \
-v /var/run/docker.sock:/var/run/docker.sock \
-d gdiepen/volume-sharer

and got this error

d66363d0077417d666f45d720c21728ab9330e4721e08a8841edf12577da85b1
docker: Error response from daemon: driver failed programming external connectivity on endpoint volume-sharer (c25835650f999bc4c8c4b8fa18a0037066b31430e21d08745e09c2ce51be8300): Error starting userland proxy: Bind for 0.0.0.0:445: unexpected error (Failure EADDRINUSE).

Maybe it's not made to run on a Mac but I'm taking a chance!

Share containing all (named) volumes to mount as network drive

Would it be possible to add an additional share containing all (named) volumes? That way, one can add a network drive to the explorer and assign a drive letter to it. (It doesnt seem possible to add a network drive for the whole server at 10.0.75.2)

No longer seems to work

Starting the VM with docker run --name volume-sharer --rm -v /var/lib/docker/volumes:/docker_volumes -p 139:139 -p 445:445 -v /var/run/docker.sock:/var/run/docker.sock --net=host -d gdiepen/volume-sharer Results in WARNING: Published ports are discarded when using host network mode and I'm unable to connect to the docker vm via smb in explorer, so it seems something has changed with how host networking works in current Docker for Windows, unless I'm missing something. Thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.