Docker container of Samba, an implementation of the Windows SMB networking protocol.
Via Docker Compose:
version: "3"
services:
samba:
image: dockurr/samba
container_name: samba
environment:
USER: "samba"
PASS: "secret"
ports:
- 445:445
volumes:
- /home/example:/storage
restart: on-failure
Via Docker CLI:
docker run -it --rm -p 445:445 -e "USER=samba" -e "PASS=secret" -v "/home/example:/storage" dockurr/samba
You can set the USER and PASS environment variables to modify the credentials for the share from their defaults (user samba with password secret).
You can set UID and GID environment variables to change the user/group id's, and set RW: false to make the share read-only.
If you need more advanced features, you can modify the smb.conf file in this repo, and bind mount it to the container like this:
volumes:
- /example/smb.conf:/etc/samba/smb.conf
Content type
Image
Digest
sha256:23d09af15…
Size
19.9 MB
Last updated
over 2 years ago
docker pull sk8r776/samba