I don’t seem to be able to run the linuxserver Plex docker container correctly. The docker compose file is simple and copied below. The user PUID and group PGID are obtained from /etc/passwd entries or “id -u”. The user with PUID and PGID has full permission to /myconfig and /mymovies in the host. I tried various different users, some with admin privileges.

The container runs, but in the PLEX account I don’t see any option to find local media. There is a bunch of annoying TV and movie and streaming advertisements/promotions.

What am I doing wrong?

---
version: "2.1"
services:
  plex:
    image: lscr.io/linuxserver/plex:latest
    container_name: plex
    network_mode: host
    environment:
      - PUID=  1026
      - PGID= 100 
      - VERSION=docker
     volumes:
      - /myconfig:/config
      - /mymovies:/movies
    restart: unless-stopped