1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/samba/README.md

58 lines
806 B
Markdown
Raw Normal View History

2015-07-17 16:53:21 +02:00
samba
=====
2015-07-17 17:11:33 +02:00
![](https://badge.imagelayers.io/vimagick/samba:latest.svg)
[`Samba`][1] is the standard Windows interoperability suite of programs for
Linux and Unix.
## docker-compose.yml
```
samba:
image: vimagick/samba
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
volumes:
- smb.conf:/etc/samba/smb.conf
- share:/share
restart: always
```
## smb.conf
```
[global]
workgroup = WORKGROUP
server string = %h server (Samba, Apline)
[share]
path = /share
browseable = yes
read only = yes
guest ok = yes
```
## server
```
$ cd ~/fig/samba
$ docker-compose up -d
$ docker exec -it samba_samba_1 sh
>>> chmod 777 /share
>>> adduser kev
>>> smbpasswd -a kev
>>> exit
```
## client
```
$ smbutil view smb://server
```
2015-07-17 16:53:21 +02:00
[1]: https://www.samba.org/