netshare volume plugin for docker1.13 base https://github.com/ContainX/docker-volume-netshare
docker plugin install wanghaibo/docker-volume-netshare SHARE_CMD=cifs
docker plugin enable wanghaibo/docker-volume-netshare
docker volume create -d wanghaibo/docker-volume-netshare --name wanghaibo -o share=10.0.6.59/remotedir -o username=*** -o password=***
docker run -ti -v wanghaibo:/mount centos ls /mount
version: '3'
services:
web:
images: nginx
volumes:
- test:/data
volumes:
test:
dirver: wanghaibo/docker-volume-netshare
dirver_opts:
share: 10.0.6.59/remotedir
username: ***
password: ***
dirMode: "0777"
fileMode: "0777"
git clone https://github.com/wanghaibo/docker-volume-netshare.git
mkdir -p $GOPATH/src/github.com/ContainX/
mv docker-volume-netshare $GOPATH/src/github.com/ContainX/
cd $GOPATH/src/github.com/ContainX/docker-volume-netshare
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
sh mkPlugin.sh wanghaibo/docker-volume-netshare
docker plugin push wanghaibo/docker-volume-netshare