NAS Not Available After Building the Container

Hi All

I’m having a challenge establishing a connection between the external drive (a NAS that includes movies) and the container (its a plex container).

  • I have been able to successfully mount the NAS drive to the Ubuntu server.
  • Under volumes, I have given it the path that it is shown on the Ubuntu server
  • It doesn’t look like there is any error in the docker logs for the container that I can identify

While getting better with docker-compose, I’m still relatively new in converting my homelab from OpenMediaVault to docker.

Can anyone provide advice on how to have the container recognize an external drive?

    image: plexinc/pms-docker
    restart: unless-stopped
    container_name: plexms
      - "32400:32400/tcp"
      - PUID=1000
      - PGID=1000
      - PLEX_CLAIM=claim-1111111111111
      - HOSTNAME=”PlexServer”
      - TZ="America/Chicago”
      - "/home/wiinc1/mediacenter/plex/config:/config"
      - "/home/wiinc1/mediacenter/plex/transcodes:/transcode/"
      - "/home/wiinc1/NAS"

Docker container log

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 40-plex-first-run: executing... 
Creating pref shell
Attempting to obtain server token from claim token
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Plex Media Server first run setup complete
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing... 
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
Starting Plex Media Server.
[services.d] done.
Critical: libusb_init failed

By any chance, should the topic title be: how to access a remote share in a container?

How are the folders /home/wiinc1/NAS and /home/wiinc1/mediacenter/plex/ related to the nas?
And how is all of this related to “Can anyone provide advice on how to have the container recognize an external drive?”

I guess you want to use a volume baked by a remote share (nfs/cifs?) with a container to access the content of the remote share. Is this correct? If so, you might want to use the forum search for docker-compose nfs or docker-compose cifs as configuring volumes for nfs/cifs should have been discussed many times already.

Also: are you realy using docker desktop for linux? Or did you install docker-ce?