Skip to content

--name option to name the volume is missing for cifs-volume-plugin #17

@christian-weiss

Description

@christian-weiss

If i run:

docker volume create -d trajano/cifs-volume-plugin --opt cifsopts=uid=1000 192.168.8.4/Downloads

the a value with the name "192.168.8.4/Downloads" will be created (username, password and domain came from /root/credentials/default):

docker volume ls
DRIVER                              VOLUME NAME
trajano/cifs-volume-plugin:latest   192.168.8.4/Downloads

To show you that this is not an allowed name i delete this volume and then try to mount this non-existing volume (this prints out the allowed characters for volume names):

docker run -d --name helloshare -v 192.168.8.4/Downloads:/testvolumesmb strm/helloworld-http
docker: Error response from daemon: create 192.168.8.4/Downloads: "192.168.8.4/Downloads" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.

means the "/" is not allowed. Would be nice if you generate a better volume name and add support for "--name" option to define a custom volume name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions