Sign inSign up

forumi0721/alpine-samba

By forumi0721

•Updated 20 days ago

alpine-samba

Image
2

10K+

forumi0721/alpine-samba repository overview

⁠alpine-samba

Docker Pulls Docker Stars

⁠x64

Docker Image Size

⁠aarch64

Docker Image Size


⁠Description
  • Distribution : Alpine Linux⁠
  • Architecture : x64,aarch64
  • Appplication : Samba⁠
    • Samba is the standard Windows interoperability suite of programs for Linux and Unix.

⁠Run
docker run -d -t \
           -p 137:137/udp \
           -p 138:138/udp \
           -p 139:139/tcp \
           -p 445:445/tcp \
           -v /data:/data \
           -e USER_NAME=<username> \
           -e USER_PASSWD=<password> \
           -e USER_UID=<uid> \
           -e USER_GID=<gid> \
           -e NETBIOS_NAME=SAMBA \
           -e WORKGROUP=WORKGROUP \
           -e SAMBA_SHARE="data=/data,..." \
           forumi0721/alpine-samba:[ARCH_TAG]

⁠Usage
  • mount share directory
    • Linux : mount -t cifs -o user=username,pass=passwd //<ip>/data /mnt/data
    • Darwin : mount -t smbfs //username:passwd@<ip>/data /Volumes/data
    • Default username/password : forumi0721/passwd
⁠Notes
  • If you want to use multiple user or complex setting, you need to create smb.conf and add -v smb.conf:/conf.d/smb.conf to docker option.

⁠Docker Options
OptionDescription
-tAllocate a pseudo-TTY
⁠Ports
PortDescription
137/udpNetBIOS Name Service
138/udpNetBIOS Datagram
139/tcpNetBIOS Session
445/tcpSMB over TCP
⁠Volumes
VolumeDescription
/dataSamba share directory
⁠Environment Variables
ENVDescription
USER_NAMELogin username (default : forumi0721)
USER_PASSWDLogin password (default : passwd)
USER_EPASSWDLogin password (base64)
USER_UIDLogin user uid (default : 1000)
USER_GIDLogin user gid (default : 100)
NETBIOS_NAMESamba NetBIOS name (default : SAMBA)
WORKGROUPSamba workgroup name (default : WORKGROUP)
SAMBA_SHARESamba share directory (default : /data)

Tag summary

Content type

Image

Digest

sha256:e7f7f841d…

Size

27.5 MB

Last updated

20 days ago

docker pull forumi0721/alpine-samba