plawl94 9 Posted January 23, 2024 Posted January 23, 2024 Hi all, I've recently started getting into tinkering with docker and took on the challenge of containerizing Emby, however, it's proven to be much more of a challenge than I initially anticipated. I'm running windows 10 with Emby currently installed directly on the host OS which works brilliantly, but wanted the extra added peace of mind being able to run it in a container behind a VPN This is an issue I've spent the last few days trying to figure out but have hit a brick wall any time I've felt like I'm getting close to a solution. I have successfully been able to run it behind a VPN through gluetun (got this working no problem, connection works and traffic runs through the VPN), however I can't map the drives I have mounted via Rclone to the container. I can still map to anywhere within the 'C' drive without issue, but can't map to my NAS (set up as Y drive) or the two mounted GDrive shares set up through Rclone (Set as drives X & Z respectively) Here's my docker compose file: version: "3" services: gluetun: image: qmcgaw/gluetun # container_name: gluetun # line above must be uncommented to allow external containers to connect. # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun cap_add: - NET_ADMIN devices: - /dev/net/tun:/dev/net/tun ports: - 8888:8888/tcp # HTTP proxy - 8388:8388/tcp # Shadowsocks - 8388:8388/udp # Shadowsocks - "0.0.0.0:1994:8096" # <-- ports go here, not below - 1995:8096 - 1996:8920 volumes: - ./gluetun:/gluetun environment: # See https://github.com/qdm12/gluetun-wiki/tree/main/setup#setup - VPN_SERVICE_PROVIDER=redacted - VPN_TYPE=openvpn # OpenVPN: - OPENVPN_USER=redacted - OPENVPN_PASSWORD=redacted - SERVER_HOSTNAMES=redacted # Wireguard: # - WIREGUARD_PRIVATE_KEY= # - WIREGUARD_ADDRESSES= # Timezone for accurate log times - TZ=UTC # Server list updater # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list - UPDATER_PERIOD= emby: image: emby/embyserver container_name: embyserver network_mode: "service:gluetun" environment: - UID=1000 # The UID to run emby as (default: 2) - GID=100 # The GID to run emby as (default 2) - GIDLIST=100 # A comma-separated list of additional GIDs to run emby as (default: 2) volumes: - ./Emby:/config # Configuration directory - X:/Media/:/mnt/share1 # Media directory - Z:/Media/:/mnt/share2 # Media direcory - Y:/Emby/:/mnt/share3 #NAS restart: on-failure I've tried every naming convention that I've seen suggested for both the Rclone drives and the NAS, such as: X:/Media:/mnt/share1 "X:/Media:/mnt/share1" //X/Media:/mnt/share1 /?//X:/Media:/mnt/share1 'X:/Media:/mnt/share1' I've tried setting volumes up in docker using the rclone plugin for the drives but an IP appears to be required (unless I'm mistaken, I could only find documentation relating to how this is done in linux), And also tried mounting the Rclone drives to a folder to point the container at but this shows as a shortcut and as such isn't recognised by the container as a valid folder I'm at a total loss at this stage so any help would be greatly appreciated! Regards Pete
Luke 42080 Posted January 23, 2024 Posted January 23, 2024 Quote I can still map to anywhere within the 'C' drive without issue, but can't map to my NAS (set up as Y drive) or the two mounted GDrive shares set up through Rclone (Set as drives X & Z respectively) Hi, what exactly happens when you try?
plawl94 9 Posted January 23, 2024 Author Posted January 23, 2024 (edited) @LukeWhen I run docker-compile and access the server I can see the mounts listed when adding a library (mnt/share1 for example) but upon selecting the mount the folder is empty Edited January 23, 2024 by plawl94
Luke 42080 Posted January 23, 2024 Posted January 23, 2024 4 minutes ago, plawl94 said: @LukeWhen I run docker-compile and access the server I can see the mounts listed when adding a library (mnt/share1 for example) but upon selecting the mount the folder is empty Selecting it how/where?
plawl94 9 Posted January 23, 2024 Author Posted January 23, 2024 4 minutes ago, Luke said: Selecting it how/where? When trying to add a new library, the result is the same if I try to set up media libraries through the initial setup process or if I skip through and try to add them from the server management menu. I've attached a screenshot of what I see when selecting the mnt/share1:
Luke 42080 Posted January 23, 2024 Posted January 23, 2024 This would suggest the server does not have access to the contents of the folder. If you can resolve that, then you should see it populated.
plawl94 9 Posted January 24, 2024 Author Posted January 24, 2024 8 hours ago, Luke said: This would suggest the server does not have access to the contents of the folder. If you can resolve that, then you should see it populated. Hey Luke, Anything in particular you think it may be? Thanks, Pete
scb99 245 Posted January 24, 2024 Posted January 24, 2024 Ive zero experience of running docker under windows but very often when this type of thing happens in windows its because the user id a process is running under doesn't have the drive mapping set up, e.g. X:
plawl94 9 Posted January 24, 2024 Author Posted January 24, 2024 (edited) 27 minutes ago, scb99 said: Ive zero experience of running docker under windows but very often when this type of thing happens in windows its because the user id a process is running under doesn't have the drive mapping set up, e.g. X: Would that relate to rclone specifically or Docker? I have the rclone mount service running as the local user (there's only one user account on the system) and docker should also be running as the local user? Thanks Pete Edited January 24, 2024 by plawl94
scb99 245 Posted January 24, 2024 Posted January 24, 2024 I was thinking of Docker, if it's running as local user then my point isnt relevant. If it's running as a service as system or whatever, you need to make sure the contents and also the drive mapping are seen by system, the easiest way to check this is to use psexec (originally by sysinternals but long ago taken over by ms) with the -s parameter
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now