Jump to content

SPACEBAR

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by SPACEBAR

  1. I ran WSL2 + Storage Space from August 2019 to March 2020. It works well. I ended up switching from Storage Space to DrivePool because it's really hard to diagnose Storage Space when it misbehaves. And when it does fail (and it will), it does so in spectacular fashion. I was bummed out about losing parity functionality but DrivePool + Snapraid is fine for my use case.

    Anyway, I was able to use DrivePool with WSL2 (Docker) by mounting cifs volumes (windows shares). Here's an example:

    version: '3.7'
    services:
      sonarr:
        build: .
        container_name: sonarr
        volumes:
          - type: bind
            source: C:\AppData\sonarr\config
            target: /config
          - downloads:/downloads
        cap_add:
          - SYS_ADMIN
          - DAC_READ_SEARCH
    volumes:
      downloads:
        driver_opts:
          type: cifs
          o: username=user,password=somethingsecure,iocharset=utf8,rw,nounix,file_mode=0777,dir_mode=0777
          device: \\IP\H$$\Downloads

    Note that I'm building the image. This is because I need to inject cifs-utils into it. Here's the dockerfile:

    FROM linuxserver/sonarr
    
    RUN \
     apt update && \
     apt install -y cifs-utils && \
     apt-get clean

    There are security considerations with this solution:

    1. Adding SYS_ADMIN capability to the docker container is dangerous
    2. You need to expose your drive/folders on the network. Depending on how your windows shares are configured, this may be less than ideal.

    Hope this helps!

×
×
  • Create New...