1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update samba

This commit is contained in:
kev 2017-05-01 14:14:27 +08:00
parent 6c227b4e02
commit aebb69004d
8 changed files with 9 additions and 13 deletions

View File

@ -5,11 +5,9 @@
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apk add -U samba-common-tools samba-server \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache samba-common-tools samba-server \
COPY smb.conf /etc/samba/
COPY ./data/smb.conf /etc/samba/
VOLUME /etc/samba \
/var/lib/samba

View File

@ -8,12 +8,12 @@ Linux and Unix.
## docker-compose.yml
```
```yaml
samba:
image: vimagick/samba
volumes:
# - ./smb.conf:/etc/samba/smb.conf
- /mnt/usb:/share
- ./data/smb.conf:/etc/samba/smb.conf
- ./share:/share
net: host
tty: yes
restart: always

View File

@ -5,11 +5,9 @@
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add -U samba-common-tools samba-server \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache samba-common-tools samba-server \
COPY smb.conf /etc/samba/
COPY ./data/smb.conf /etc/samba/
VOLUME /etc/samba \
/var/lib/samba

View File

@ -1,7 +1,7 @@
samba:
image: easypi/samba-arm
volumes:
# - ./smb.conf:/etc/samba/smb.conf
- ./data/smb.conf:/etc/samba/smb.conf
- /mnt/usb:/share
net: host
tty: yes

View File

@ -1,7 +1,7 @@
samba:
image: vimagick/samba
volumes:
# - ./smb.conf:/etc/samba/smb.conf
- ./data/smb.conf:/etc/samba/smb.conf
- ./share:/share
net: host
tty: yes