-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
moby/moby
#39250Labels
Description
- CentOS 7.4
- Docker version 17.10.0-ce, build f4ffd25
I'm trying to create a volume with CIFS and a local driver.
Direct mounting works:
mount -t cifs -o username=user1,password=user1pass,vers=3.0 \
//localhost/private /tmp/mediashareHere's my attempt with docker volume create:
docker volume create \
--driver local \
--opt type=cifs \
--opt device=//localhost/private \
--opt o=username=user1,password=user1pass,sec=ntlm,vers=3.0 \
mediashare
docker run -it --rm -v mediashare:/tmp/mediashare \
-d --name samba-client alpine ashHowever, here's the output. The generic invalid argument error seems unhelpful.
docker: Error response from daemon: error while mounting volume '/var/lib/docker/volumes/mediashare/_data': error while mounting volume with options: type='cifs' device='//localhost/private' o='username=user1,password=user1pass,sec=ntlm,vers=3.0': invalid argument.
References
This must be old information, since I don't see a name argument for docker volume create:
I got it working with a plugin (docker-volume-netshare), but I want to try it without.
My Docker Forums post:
Reactions are currently unavailable