Skip to content

Instantly share code, notes, and snippets.

@phillijw
Created May 12, 2018 03:10
Show Gist options
  • Save phillijw/a727f10a8124ba0bf09cf9d34a6c1c86 to your computer and use it in GitHub Desktop.
Save phillijw/a727f10a8124ba0bf09cf9d34a6c1c86 to your computer and use it in GitHub Desktop.
Samba docker
docker run \
-p 139:139 \
-p 445:445 \
-e TZ=CST6CDT \
-v /media/kingkong:/mount/kingkong \
-d \
--name samba \
--restart unless-stopped \
dperson/samba \
-s "kingkong;/mount/kingkong"
The -s param gets passed through: "shareName;location"
I couldn't get win10 to "detect" the share but I could connect to it directly via \\some.ip.address\kingkong
@phillijw
Copy link
Author

docker run \
  -p 139:139 \
  -p 445:445 \
  -p 137:137/udp \
  -p 138:138/udp \
  -e TZ=CST6CDT \
  -v /media/kingkong:/mount/kingkong \
  -d \
  --name samba \
  --restart unless-stopped \
  dperson/samba \
  -n \
  -S \
  -g "map to guest = Bad User" \
  -s "kingkong;/mount/kingkong;yes;no;yes;all;none;;comment1"

@phillijw
Copy link
Author

phillijw commented Nov 3, 2018

type in a username of \ and no password for win10 to let me in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment