samba镜像地址及使用文档
https://hub.docker.com/r/dperson/samba
docker部署
docker run -it --name samba -p 139:139 -p 445:445 -v /home/samba:/mount -d dperson/samba -p -u "test;test123" -s "test;/mount;yes;no;no;all;all;all"
/home/samba指要共享的目录
-u "test;test123"用户名和密码
-s "test;/mount;yes;no;no;all;all;all"
-s "<name;/path>[;browse;readonly;guest;users;admins;writelist;comment]" Configure a share required arg: "<name>;</path>" <name> 客户端显示的名称 <path> path to share NOTE: for the default values, just leave blank [browsable] default:'yes' or 'no' [readonly] default:'yes' or 'no' [guest] allowed default:'yes' or 'no' NOTE: for user lists below, usernames are separated by ',' [users] allowed default:'all' or list of allowed users [admins] allowed default:'none' or list of admin users [writelist] list of users that can write to a RO share [comment] description of share