Hello world,
I am hoping someone can help me solve this issue. I am using Docker for Windows 10 with Linux containers and WSL2. I have an external NAS I am running docker containers on my local machine but want the containers to access media on my external NAS. Here is my Docker Compose YML
volumes:
gluetunconfig:
driver_opts:
type: cifs
o: "username=username,password=password,rw,uid=0,gid=0"
device: "//localIP/docker/mediastack/gluetun"
qbittorrentconfig:
driver_opts:
type: cifs
o: "username=username,password=password,rw,uid=0,gid=0"
device: "//localIP/docker/mediastack/qbittorrent"
qbittorrentdata:
driver_opts:
type: cifs
o: "username=username,password=password,rw,uid=0,gid=0"
device: "//localIP/data/torrents"
services:
gluetun:
image: qmcgaw/gluetun
container_name: gluetun-vpn
cap_add:
- NET_ADMIN
ports:
#the container port(s) should be the ones needed for the container you want to use the gluetun network
- 6881:6881
- 6881:6881/udp
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
- 8090:8090 # port for qBittorrent
- 8080:8080 #qBittorrent
volumes:
- gluetunconfig:/gluetun
environment:
- PUID=0
- PGID=0
- TZ=America/New_York
- VPN_SERVICE_PROVIDER=private internet access
- VPN_TYPE=openvpn
- OPENVPN_USER=username
- OPENVPN_PASSWORD=password
- HTTPPROXY=off #change to on if you wish to enable
- SHADOWSOCKS=off #change to on if you wish to enable
- FIREWALL_OUTBOUND_SUBNETS=localIP #change this in line with your subnet see note on guide.
# - FIREWALL_VPN_INPUT_PORTS=12345 #uncomment this line and change the port as per the note on the guide
restart: always
qbittorrent:
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent
environment:
- PUID=0
- PGID=0
- TZ=America/New_York
- WEBUI_PORT=8080
volumes:
- qbittorrentconfig:/config
- qbittorrentdata:/data/torrents
# ports:
# - 8080:8080
# - 6881:6881
# - 6881:6881/udp
network_mode: service:gluetun
depends_on:
gluetun:
condition: service_healthy
security_opt:
- no-new-privileges:true
restart: always```
the error I am getting is:
Error response from daemon: failed to mount local volume: mount //localIP/docker/mediastack/gluetun:/var/lib/docker/volumes/vpn_gluetunconfig/_data, data: username=username,password=********,vers=3.0: operation not supported
any help would be greatly appreciated.
Thanks!