Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fschuindt/docker-smb
A containerized Samba server to share Docker host directories.
https://github.com/fschuindt/docker-smb
Last synced: about 1 month ago
JSON representation
A containerized Samba server to share Docker host directories.
- Host: GitHub
- URL: https://github.com/fschuindt/docker-smb
- Owner: fschuindt
- Created: 2018-07-02T23:04:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T15:12:15.000Z (over 3 years ago)
- Last Synced: 2024-11-21T19:07:15.496Z (about 2 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 57
- Watchers: 4
- Forks: 34
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Standalone Samba Server
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.
## Warning
Note the simple `smb.conf` file.
It will start a **writable Guests allowed server**.
## Pro tip
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.
## Configuration
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:
```yml
volumes:
- /home/someone/my_folder/:/Shared
```If you want to perform Samba related configurations, just edit the `smb.conf` file to fit your wishes.
## Running
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
```## License
The repository is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).