I have windows 2019 server (v1809) (can’t install wsl without upgrading)
and docker desktop with portainer. I want to bind a volume with a smb share but keep getting errors (not supported or invalid argument)
failed to deploy a stack: Network YYYYY Creating Network YYYYY Created Container XXXX Creating Error response from daemon: failed to mount local volume: mount //10.1.0.12/Share:/var/lib/docker/volumes/Share/_data, data: addr=10.1.0.12,username=********,password=********,vers=3.0: operation not supported
failed to deploy a stack: Network YYYYY Creating Network YYYYY Created Container XXXX Creating Error response from daemon: failed to mount local volume: mount //10.1.0.12/Share:/var/lib/docker/volumes/Share/_data, data: addr=10.1.0.12,username=********,password=********,vers=2.0: invalid argument
I saw in portainer that I had to install cifs-utils and found a lovely tutorial on how to install it on WSL dockerdesktop. (https://www.portainer.io/blog/how-to-mount-a-cifs-share-to-a-container-in-docker-desktop)
But since I have an Hyper-V dockerdesktop system I can’t follow that tutorial.
I also tried to configure (without success) with :
- mklink
- powershell SymbolicLink/Junction
- docker volume create –name Folder –driver local –opt type=cifs –opt device=10.1.0.12ShareDownloads –opt o=addr=10.1.0.12,username=,password=*,file_mode=0777,dir_mode=0777
- with portainer GUI
Can somebody help me with that?
Romane Donnet is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.