This Docker image contains a simple samba server.
It provides a public share accessable by the guest user and a restricted share only accessable with authentication.
ENABLE_PUBLIC_SHARE
- Set to true to enable a public share accessable with the guest user, default:
false
.
- Set to true to enable a public share accessable with the guest user, default:
SAMBA_USER
- Username for authentication. For example
SAMBA_USER=user
- Username for authentication. For example
SAMBA_PASSWORD
- Password for authentication. For example
Username for authentication=placepasswordhere
- Password for authentication. For example
SAMBA_WORKGROUP
- The workgroup of the samba server. For example
SAMBA_WORKGROUP=WORKGROUP
- The workgroup of the samba server. For example
To persist container data you can define some volumes. Directories that contain data are
/media/samba
- Contains all data of the samba server
/media/samba/public
- Contains the data of the public share
/media/samba/restricted
- Contains the data of the restricted share
To build the image locally run:
./docker-build.sh