ContainX / docker-volume-netshare

Docker NFS, AWS EFS, Ceph & Samba/CIFS Volume Plugin
http://netshare.containx.io
Apache License 2.0
1.11k stars 164 forks source link

"-a" missing in docker-volume-netshare 0.35 ? #171

Closed christian-weiss closed 5 years ago

christian-weiss commented 5 years ago

As root:

wget https://github.com/ContainX/docker-volume-netshare/releases/download/v0.35/docker-volume-netshare_0.35_amd64.deb
dpkg -i docker-volume-netshare_0.35_amd64.deb

My docker version:

docker version
Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:25:03 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:23:29 2018
  OS/Arch:          linux/amd64
  Experimental:     false

cat /etc/default/docker-volume-netshare

# Docker Volume Plugin - Netshare Upstart and SysVinit configuration file

# Customize location of the binary (especially for development testing).
#DKV_NETSHARE="/usr/bin/docker-volume-netshare"

#
# Customize the volume plugin startup options
#

## NFS
#DKV_NETSHARE_OPTS="nfs"

## EFS
#DKV_NETSHARE_OPTS="efs --nameserver=169.254.169.253"

## CIFS
#DKV_NETSHARE_OPTS="cifs -u user -p pass -d domain"
DKV_NETSHARE_OPTS="cifs -u someusername-p mypassword-d WORKGROUP"

Start the service:

docker-volume-netshare cifs -a 1.38
Error: unknown shorthand flag: 'a' in -a
Usage:
  docker-volume-netshare cifs [flags]

Flags:
  -z, --dirMode string    Setting access rights for folders (mount.cifs's dir_mode option). Can also set environment NETSHARE_CIFS_DIRMODE.
  -d, --domain string     Domain to use for mounts.  Can also set environment NETSHARE_CIFS_DOMAIN
  -f, --fileMode string   Setting access rights for files (mount.cifs's file_mode option). Can also set environment NETSHARE_CIFS_FILEMODE.
  -h, --help              help for cifs
      --netrc string      The default .netrc location.  Default is the user.home directory (default "/root")
  -o, --options string    Options passed to Cifs mounts (ex: nounix,uid=433)
  -p, --password string   Password to use for mounts.  Can also set environment NETSHARE_CIFS_PASSWORD
  -s, --security string   Security mode to use for mounts (mount.cifs's sec option). Can also set environment NETSHARE_CIFS_SECURITY.
  -u, --username string   Username to use for mounts.  Can also set environment NETSHARE_CIFS_USERNAME

Global Flags:
      --basedir string   Mounted volume base directory (default "/var/lib/docker-volumes/netshare")
      --port string      TCP Port if --tcp flag is true.  :PORT for all interfaces or ADDRESS:PORT to bind. (default ":8877")
      --tcp              Bind to TCP rather than Unix sockets.  Can also be set via NETSHARE_TCP_ENABLED
      --verbose          Turns on verbose logging

Please (re-)add the missing flag or update the documenation: https://github.com/ContainX/docker-volume-netshare

jakirpatel commented 5 years ago

@christian-weiss Could you please compile the latest version of docker-volume-netshare? The release 0.35 you are using does not support -a option.

gondor commented 5 years ago

@christian-weiss just released version 0.36 which should include this - cc @jakirpatel