SvenDowideit / dockerfiles

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

The Folder Can't be Found OSX #5

Open simonsez opened 10 years ago

simonsez commented 10 years ago

Hello,

I'm having some difficulty connecting to the volume from my OSX host OS.

cifs://192.168.59.103/data results in "The folder can't be found"

When running

Simons-MacBook-Air-1130:source simon$ docker run -v /data --name data busybox true

and then

Simons-MacBook-Air-1130:source simon$ docker run --rm -v /usr/local/bin/docker:/docker -v /var/run/docker.sock:/docker.sock -e localstubsource svendowideit/samba data 
true
stopping and removing existing server
starting samba server container with data /data
add /data
Starting Samba daemons: nmbd smbd.
watching /var/log/samba/*
==> /var/log/samba/cores <==
tail: error reading `/var/log/samba/cores': Is a directory
tail: /var/log/samba/cores: cannot follow end of this type of file; giving up on this name

==> /var/log/samba/log.nmbd <==
[2014/06/28 00:41:31,  0] nmbd/nmbd.c:861(main)
  nmbd version 3.6.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011

==> /var/log/samba/log.smbd <==
[2014/06/28 00:41:31,  0] smbd/server.c:1053(main)
  smbd version 3.6.6 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2014/06/28 00:41:31.896525,  0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2014/06/28 00:41:31.896775,  0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

Is samba not running in the container?

SvenDowideit commented 10 years ago

sorry, I will clean this output up today - that log looks like everything is fine - you can do a docker top <container> to see if samba is running - I suspect it is.

to be sure - id 192.168.59.103 the ip returened by boot2docker ip ?

simonsez commented 10 years ago

Hmm you are spot on:

Simons-MacBook-Air-1130:Downloads simon$ docker top samba-server
PID                 USER                COMMAND
7336                root                {setup.sh} /bin/bash /setup.sh --start data /data
7360                root                /usr/sbin/nmbd -D
7363                root                /usr/sbin/smbd -D
7364                root                tail -f /var/log/samba/cores /var/log/samba/log.nmbd /var/log/samba/log.smbd
7366                root                /usr/sbin/smbd -D

And yes

Simons-MacBook-Air-1130:Downloads simon$ boot2docker ip
The VM's Host only interface IP address is: 192.168.59.103

screen shot 2014-06-29 at 5 39 59 pm

Any idea what I might be doing wrong?

SvenDowideit commented 10 years ago

I've made an update to that container that paints a more positive picture :)