转自我的博客:
更多具体设置请参照https://github.com/dperson/samba
-u “user;password” 的引号内容换成自己的用户密码,多用户就多 -u
docker run -it --name samba -p 445:445 -v /root/downloads:/mount -d dperson/samba -u "user;password" -s "Downloads;/mount/;yes;no;no;all;user"
划线部分设置请参照
-s "<name;/path>[;browse;readonly;guest;users;admins;writelist;comment]" Configure a share required arg: "<name>;</path>" <name> is how it's called for clients <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' [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
网友评论