1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

fix samba

This commit is contained in:
kev 2016-04-07 09:46:55 +08:00
parent dfb6d24cff
commit 31eb2aded9
3 changed files with 5 additions and 13 deletions

@ -16,4 +16,4 @@ EXPOSE 137/udp \
139/tcp \
445/tcp
CMD ["smbd", "--foreground", "--log-stdout"]
CMD nmbd -D && smbd -FS

@ -11,14 +11,10 @@ Linux and Unix.
```
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
net: host
restart: always
```
@ -56,7 +52,7 @@ Retype new SMB password:******
## client
```
$ smbutil view -NG smb://server
$ smbutil view -NG smb://easypi
Share Type Comments
-------------------------------
share Disk
@ -64,7 +60,7 @@ IPC$ Pipe IPC Service (Samba Serve
2 shares listed
$ mkdir -p /Volumes/share
$ mount_smbfs //guest@server/share /Volumes/share
$ mount_smbfs //guest@easypi/share /Volumes/share
$ umount /Volumes/share
```

@ -1,11 +1,7 @@
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
net: host
restart: always