HUB
Sign inSign up

huggla/samba-alpine

By huggla

•Updated about 7 years ago

Minimal Samba server.

Image
0

1.9K

huggla/samba-alpine repository overview

⁠samba-alpine

A secure and minimal docker image with Samba server (share) on Alpine edge. Runs as non-privileged user.

⁠Internal container ports (expose externally as 445 if you wish)

  • UDP 4450
  • TCP 4450

⁠Pre-set environment variables (can be set at runtime)

  • VAR_LINUX_USER (root)
  • VAR_CONFIG_FILE (/etc/samba/smb.conf)
  • VAR_FINAL_COMMAND (nmbd --daemon -p 4450 --debuglevel=$VAR_DEBUGLEVEL --configfile=$VAR_CONFIG_FILE --no-process-group && smbd -p 4450 --foreground --log-stdout --debuglevel=$VAR_DEBUGLEVEL --configfile=$VAR_CONFIG_FILE --no-process-group)
  • VAR_SHARES_DIR (/shares): Root directory for shares.
  • VAR_SHARE_USERS (shareuser): Comma separated list of user names that should have access the the shares.
  • VAR_DEBUGLEVEL (1)
⁠Default global configuration
  • VAR_global_smb_passwd_file (/etc/samba/smbpasswd): Encrypted passwords for all Samba users.
  • VAR_global_dns_proxy (no)
  • VAR_global_username_map (/etc/samba/usermap.txt)
  • VAR_global_log_file (/var/log/samba/log.%m)
  • VAR_global_max_log_size (0)
  • VAR_global_panic_action (killall nmdb smbd)
  • VAR_global_server_role (standalone)
  • VAR_global_map_to_guest (bad user)
  • VAR_global_load_printers (no)
  • VAR_global_printing (bsd)
  • VAR_global_printcap_name (/dev/null)
  • VAR_global_disable_spoolss (yes)
  • VAR_global_disable_netbios (yes)
  • VAR_global_smb_encrypt (desired)
  • VAR_global_lanman_auth (no)

⁠Runtime environment variables

  • VAR_SHARES: Comma separated list of share names. Might also contain homes, printers.
⁠Global configuration
  • VAR_global_<parameter name with space replaced by underscore>: f ex global_allow_nt4_crypto.
⁠Share configuration
  • VAR_<share name from SHARES>_<parameter name with space replaced by underscore>: f ex public_guest_ok.
⁠User configuration
  • VAR_password_file_<user name from USERS>: Path to file containing password for named user.
  • VAR_password_<user name from USERS>: Password for named user. Slightly less secure.
  • VAR_SHARE_USERS=user1
  • VAR_password_user1=1goodPa$$word
  • VAR_SHARES=user1share
  • VAR_user1share_browsable=yes
  • VAR_user1share_guest_ok=no
  • VAR_user1share_read_only=yes
  • VAR_user1share_write_list=user1
  • VAR_user1share_create_mask=0660
  • VAR_user1share_directory_mask=0770

⁠Capabilities

Can drop all but CHOWN, SETPCAP, SETGID and SETUID.

⁠Note!

Connecting from Windows 10 can be tricky. Make sure smb support is turned on, then use the "map to drive letter" tool.

Tag summary
Recent tags
Content type
Image
Digest
Size
14.2 MB
Last updated
about 7 years ago
docker pull huggla/samba-alpine:4.10.8-20191018