mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-12 04:23:04 +02:00
update
This commit is contained in:
parent
3992c218a7
commit
27dfe7bed0
@ -10,8 +10,6 @@ RUN apk add -U samba-common-tools samba-server \
|
||||
|
||||
COPY smb.conf /etc/samba/
|
||||
|
||||
VOLUME /etc/samba
|
||||
|
||||
EXPOSE 137/udp 138/udp 139/tcp 445/tcp
|
||||
|
||||
CMD smbd --foreground --log-stdout
|
||||
|
@ -1,6 +1,57 @@
|
||||
samba
|
||||
=====
|
||||
|
||||
[`Samba`][1] is the standard Windows interoperability suite of programs for Linux and Unix.
|
||||
![](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
|
||||
```
|
||||
|
||||
[1]: https://www.samba.org/
|
||||
|
@ -1,8 +1,11 @@
|
||||
samba:
|
||||
build: .
|
||||
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
|
||||
|
@ -21,8 +21,8 @@ printing = none
|
||||
printcap name = /dev/null
|
||||
disable spoolss = yes
|
||||
|
||||
[root]
|
||||
path = /root
|
||||
[share]
|
||||
path = /share
|
||||
browseable = yes
|
||||
read only = yes
|
||||
guest ok = yes
|
||||
|
Loading…
Reference in New Issue
Block a user