linux samba docker

docker pull dperson/samba

#best practice , order is important!
docker run -it --name samba -p 139:139 -p 445:445 \
            -v /path/to/local/directory:/mount \
            -v /etc/localtime:/etc/localtime:ro \
            dperson/samba -p \
            -u "user;password" \
            -s "SMBshareName;/mount;yes;no;no;user;user;commet"


docker run -it -d --name samba -p 139:139 -p 445:445 \
            -v /home/test:/share \
            -v /etc/localtime:/etc/localtime:ro \
            dperson/samba -p \
            -u "kuru;kuru123" \
            -s "humeng;/share;yes;no;no;kuru;kuru;docker samba"
			
			
docker run -it -d --name samba -p 139:139 -p 445:445 -v /mnt/sambaRoot:/share -v /etc/localtime:/etc/localtime:ro dperson/samba -p -u "kuru;kuru123" -s "humeng;/share;yes;no;no;kuru;kuru;docker samba"
posted @ 2023-07-14 19:42  小黑狐狸1001  阅读(43)  评论(0编辑  收藏  举报