Sign inSign up

tom42/mysamba

By tom42

Updated about 6 years ago

source https://github.com/nrobinaubertin/dockerfiles/tree/master/samba

Image
0

100K+

tom42/mysamba repository overview

source https://github.com/nrobinaubertin/dockerfiles/tree/master/samba

Samba

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

samba logo

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.

Features
  • 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)
Ports

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
Volumes
  • /shared: Shared folder.
Setup

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

Tag summary

Content type

Image

Digest

Size

14.5 MB

Last updated

about 6 years ago

docker pull tom42/mysamba