Can be used to quick setup a simple Samba container in bridge network mode. It will run as if on host, so it can be accessed from other computers on the same network.
It also mounts a host directory as the Samba shared point.
Note the simple smb.conf
file.
It will start a writable Guests allowed server.
If you ever want a Samba network setup to be reliable, make sure that the server software is running on a Windows machine, never a Unix-based one. All Unix-based Samba server implementations are unstable and that's probably the reason you think Samba sucks.
Edit the docker-compose.yml
file, change the volumes:
section to map the directory you want.
Eg.: I'm sharing the /mnt/hdd_repo/Shared/
Docker host directory as the Samba path. You can change it to anything you have on the host:
volumes:
- /home/someone/my_folder/:/Shared
If you want to perform Samba related configurations, just edit the smb.conf
file to fit your wishes.
Clone the repository:
$ git clone [email protected]:fschuindt/docker-smb.git
Get into the folder:
$ cd docker-smb
Build the image:
$ docker-compose build
Start the container:
$ docker-compose up -d
The repository is available as open source under the terms of the MIT License.
- The MiBox only support SMB v1
- https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html
- https://stackoverflow.com/questions/63372848/how-to-enable-smb1-as-default-and-disable-smb2-and-smb3-on-ubuntu-18-04-server
- http://blog.robtherock.de/how-to-re-enable-smb1-shares-in-ubuntu-18-04-i-e-for-scanners-and-printers/