docker-samba
docker-samba copied to clipboard
help with fileshare defs?
btw, thanks for picking up the baton for dperson/samba. I just tried this out, but couldn't get it to work.
Behaviour
Creating a yml file as documented doesn't yield fileshares. Also, could you write some doc explaining how to disable the other services listed in the log? all I need is a authless smb fileshare, nothing for time machine, print, KDCs, etc.
Steps to reproduce this issue
-
create config.yml per directions. Same result if I include an auth section or not.
-
Run the container:
sudo podman run --ip 192.168.1.193 --network services -v /filesrv:/data:Z -d crazymax/samba
network is macvlan. -
verify a test file from the mounted volume is seen by the container:
sudo podman exec b7bfa436d124 /bin/ls /data/media/music
test.mp3
Expected behaviour
In windows file explorer, \\<ip>\music
shows me test.mp3
get more logs given log level = 3
Actual behaviour
when container is off, nmap <ip>
yields "Host seems down"
When on:
- Global settings seem to be read in fine, except no interesting logs.
-
nmap <ip>
yields 445 open -
\\<ip>
yields an empty directory of files and folders -
\\<ip>\music
yields "windows cannot access \\music"
Configuration
- Docker version (type
docker --version
) : podman 3.0.1 - Docker compose version if applicable (type
docker-compose --version
) : n/a - Platform (Debian 9, Ubuntu 18.04, ...) : debian 11, all recently updated
- System info (type
uname -a
) : 5.15.32-v8+ - Include all necessary configuration files :
docker-compose.yml
,.env
, ...
config.yml:
global:
- "min protocol = smb3"
- "disable spoolss = yes"
- "load printers = no"
- "log level = 3"
- "printing = bsd"
- "printcap name = /dev/null"
share:
- name: music
path: /data/media/music
browsable: yes
readonly: no
guestok: yes
Docker info
> Output of command `docker info`
n/a in podman, but if you tell me what else would be important, I can probably find it.
Logs
> Container logs (set LOG_LEVEL to debug if applicable)
Setting timezone to UTC Initializing files and folders Setting global configuration Load smb config files from /etc/samba/smb.conf Loaded services file OK. Weak crypto is allowed
Server role: ROLE_STANDALONE
Global parameters
[global] disable netbios = Yes disable spoolss = Yes dns proxy = No local master = No map to guest = Bad User pam password change = Yes printcap name = /dev/null security = USER server role = standalone server server services = s3fs, rpc, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate server string = Docker Samba Server smb ports = 445 unix extensions = No usershare allow guests = Yes winbind scan trusted domains = Yes fruit:time machine = yes fruit:delete_empty_adfiles = yes fruit:wipe_intentionally_left_blank_rfork = yes fruit:veto_appledouble = no fruit:posix_rename = yes fruit:model = MacSamba fruit:metadata = stream idmap config * : backend = tdb create mask = 0664 directory mask = 0775 force create mode = 0664 force directory mode = 0775 hosts allow = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 hosts deny = 0.0.0.0/0 printing = bsd strict locking = No vfs objects = fruit streams_xattr wide links = Yes smbd version 4.15.5 started. Copyright Andrew Tridgell and the Samba Team 1992-2021