Created
March 21, 2020 13:59
-
-
Save shanehsu/db432a6f133e04db6bae2a23a4bbf7d9 to your computer and use it in GitHub Desktop.
Samba repro docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
samba: | |
image: dperson/samba | |
environment: | |
TZ: 'EST5EDT' | |
networks: | |
- default | |
ports: | |
- "137/udp" | |
- "138/udp" | |
- "139/tcp" | |
- "445/tcp" | |
tmpfs: | |
- /tmp | |
restart: unless-stopped | |
stdin_open: true | |
tty: true | |
volumes: | |
- /samba-data | |
command: '/bin/bash -c "touch /samba-data/file.txt && samba.sh -s \"data;/samba-data\" -u \"bob;bob\" -p"' | |
mounter: | |
image: ubuntu | |
command: '/bin/bash -c "apt update && apt install -y cifs-utils && mkdir /samba-data && mount -v -o username=bob,password=bob,vers=3.0,ro,port=445 //samba/data /samba-data"' | |
tty: true | |
# privileged: true | |
cap_add: | |
- SYS_ADMIN | |
- DAC_READ_SEARCH | |
networks: | |
default: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment