Public | Automated Build

Last pushed: 5 months ago
Short Description
Full Description



Simple, lightweight and secure Samba docker container based on Alpine Linux.

What is Samba ?

Samba is a re-implementation of the SMB networking protocol. It facilitates file and printer sharing among Linux and Windows systems as an alternative to NFS.

Goal of this container

I am trying really hard to make a drop-in container, as simple as possible to setup.
Only one shared folder with all permissions to anybody on the local network: perfect for family use.


  • Based on Alpine Linux.
  • Automatic installation for drop-in use.
  • No root processes. As secure as possible.

Build-time variables

  • USERNAME: The username used for samba (needs to have read/write rights on the host shared directory)


I'm not using the standard ports inside the container in order to not run samba as root.
But it shouldn't be a issue since you can bind them to the usual ones at run (see setup example).

  • 7137
  • 7138
  • 7139
  • 7445


  • /shared: Shared folder.


Example command to build this image:

docker build -t samba .

Example command to run this container:

docker run --init -d -p 137-139:7137-7139 -p 445:7445 -v /path/to/share:/shared --name=samba samba
Docker Pull Command
Source Repository