准备12# 拉取镜像sudo docker pull dperson/samba:latest配置文件12345678# 在你喜欢的地方创建配置文件# /mnt/HanSSD/Docker/DockerData/samba/smb.conf[HanSSD_SMB] comment = Shared Folder path = /share browseable = yes read only = no valid users = hanfile部署123456sudo docker run -d --name samba \-p 445: 445 \-v /mnt/HanSSD/Docker/DockerData/samba:/etc/samba \-v /mnt/HanSSD/SAMBA_SHARE:/share \--restart=always \dperson/samba:latest创建用户12345# 进入docker终端sudo docker exec -it samba /bin/bash# 创建用户(会让你输入2次密码)smbpasswd -a hanfile# Added user hanfile. 即成功连接登陆,增删改查权限没问题,即可 大功告成!