Skip to content

julio-matarranz/volume-netshare-plugin

 
 

Repository files navigation

netshare volume plugin for docker1.13 base https://github.com/ContainX/docker-volume-netshare

usage

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

compse v3

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"

build docker-volume-netshare

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

create plugin

sh mkPlugin.sh wanghaibo/docker-volume-netshare
docker plugin push wanghaibo/docker-volume-netshare

About

cifs plugin for docker1.13

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%