Skip to content

Fork from trnape/rpi-samba. Docker container that creates a SMB share. Add file execution support.

Notifications You must be signed in to change notification settings

gzfrozen/rpi-samba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Fork from trnape/rpi-samba. Add file execution support.

Samba file server for Raspberry Pi

Docker container that creates a SMB share.

Dockerfile: https://github.com/gzfrozen/rpi-samba

Running

docker run -d -p <docker_host_ip>:445:445 \
  -v /mnt/data:/share/data \
  -v /mnt/backups:/share/backups \
  --name <container name> trnape/rpi-samba \
  -u "alice:abc123" \
  -u "bob:secret" \
  -u "guest:guest" \
  -s "Backup directory:/share/backups:rw:alice,bob" \
  -s "Alice (private):/share/data/alice:rw:alice" \
  -s "Bob (private):/share/data/bob:rw:bob" \
  -s "Documents (readonly):/share/data/documents:ro:guest,alice,bob"

This example will bind smbd to docker host ip address and mount two directories on docker host to container. Three users will be created and given various access to four shares.

Connecting

To keep things simple, TCP port 445 is the only exposed port.

Open Finder, then press ⌘K. Enter smb://<docker_host_ip> and press Connect. Enter login and password you supplied at the run stage.

About

Fork from trnape/rpi-samba. Docker container that creates a SMB share. Add file execution support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published