1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +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 \ 139/tcp \
445/tcp 445/tcp
CMD ["smbd", "--foreground", "--log-stdout"] CMD nmbd -D && smbd -FS

@ -11,14 +11,10 @@ Linux and Unix.
``` ```
samba: samba:
image: vimagick/samba image: vimagick/samba
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
volumes: volumes:
- ./smb.conf:/etc/samba/smb.conf - ./smb.conf:/etc/samba/smb.conf
- ./share:/share - ./share:/share
net: host
restart: always restart: always
``` ```
@ -56,7 +52,7 @@ Retype new SMB password:******
## client ## client
``` ```
$ smbutil view -NG smb://server $ smbutil view -NG smb://easypi
Share Type Comments Share Type Comments
------------------------------- -------------------------------
share Disk share Disk
@ -64,7 +60,7 @@ IPC$ Pipe IPC Service (Samba Serve
2 shares listed 2 shares listed
$ mkdir -p /Volumes/share $ mkdir -p /Volumes/share
$ mount_smbfs //guest@server/share /Volumes/share $ mount_smbfs //guest@easypi/share /Volumes/share
$ umount /Volumes/share $ umount /Volumes/share
``` ```

@ -1,11 +1,7 @@
samba: samba:
image: vimagick/samba image: vimagick/samba
ports:
- "137:137/udp"
- "138:138/udp"
- "139:139/tcp"
- "445:445/tcp"
volumes: volumes:
- ./smb.conf:/etc/samba/smb.conf - ./smb.conf:/etc/samba/smb.conf
- ./share:/share - ./share:/share
net: host
restart: always restart: always