Public Repository

Last pushed: a year ago
Short Description
https://github.com/chuck-knox/samba-docker
Full Description

Alpine-based Samba Docker image.

https://github.com/chuck-knox/samba-docker

Docker-compose example:

version: '2'
#volumes:
services:
  smbshare:
    image: charlesmknox/samba:latest
    restart: always
    ports:
      - 137:137/tcp
      - 137:137/udp
      - 138:138/tcp
      - 138:138/udp
      - 139:139
      - 445:445
      - 445:445/udp
    hostname: parenthostname
    volumes:
      - /mnt/smbsharefolder:/share/data
    command: -u "user:password" -u "user2:password" -s "smbsharename:/share/data:rw:user,user2"

Mounting an SMB share on Linux

Install cifs:

sudo apt-get install -y cifs-utils
sudo mount -t cifs  -o username=secretuser,password=pw //networkname/mount /mnt/localfoldername

To permanently mount, edit /etc/fstab:

//network-hostname/sharename  /mnt/mountfoldername     cifs    rw,gid=docker,username=secretuser,password=password1,iocharset=utf8,sec=ntlm     0       2
Docker Pull Command
Owner
charlesmknox

Comments (0)