Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 851 Bytes

readme.md

File metadata and controls

50 lines (37 loc) · 851 Bytes

BUILD IMAGE viettu123/samba

Pull image:

docker pull viettu123/samba

Or build from Dockerfile

build.sh

Run container

Map path host /path-host/ to share volume, user smbuser, password 123456

docker run -it -p 139:139 -p 145:145 -v /path-host/:/data/ -e smbuser=smbuser -e password=123456 --name samba viettu123/samba

Access file server (/home/data/)

smb://ip/data

Create Volume

docker volume create \
     --driver local \
     --opt type=cifs \
     --opt device=//IP/data \
     --opt o=username=smbuser,password=1234567,file_mode=0777,dir_mode=0777 \
     --name smb

Create Volume in docker-compose.yml

volumesmb:
   driver: local
   driver_opts:
    type: cifs
    device: //192.168.1.5/data
    o: "username=smbuser,password=1234567,file_mode=0777,dir_mode=0777"