Alpine image with samba installed, ready to be set up with docker compose without external files
3.7K
Made following the tutorial of MadhuKraft on youtube with some modifications. Credits to him. I just followed the tutorial and made it available to the public as a docker hub image.
This is just a less customizable and easier to use image than my first one, given that it does not require you to create a smb.conf file for it to work:
https://hub.docker.com/r/ciberbago/samba
How to use:
docker:
docker run -d -p 445:445 -p 139:139 -v /route/to/share1:/mnt/name1 -e user_count=1 -e user1=name1 -e password1=1234 -e sharename1=foldername1 --restart unless-stopped ciberbago/samba-auto
docker-compose:
services:
samba:
container_name: samba
image: ciberbago/samba-auto
ports:
- 445:445
- 139:139
volumes:
# Make the folders in mnt match your usernames
- /route/to/your/share:/mnt/name1
- /route/to/your/share2:/mnt/name2 #optional
environment:
# Change "user_count" to match the desired number of users. If you want more than 2
# make sure to add "user3=name3" and "password3=pass"
- user_count=2
- user1=name1
- password1=1234
- sharename1=Folder name
- user2=name2 #optional
- password2=1234 #optional
- sharename2=Folder name 2 #optional
restart: unless-stopped
Content type
Image
Digest
sha256:650383f2e…
Size
26.1 MB
Last updated
over 1 year ago
docker pull ciberbago/samba-auto