Plex Media Server on Raspberry Pi

Thanks to besn0847/arm-plex docker image, it’s possible to run Plex Media Server on Raspberry Pi. This docker image is using third party package.

Here is ansible task that gets docker image and runs container.

- hosts: pi
  become: true 
- tasks                                                                                                                                                    - name: Creates library directory                                                                                                                              
      file:
          path: /mnt/data/library
          state: directory

    - name: Plex media server container present
      docker_container:
          name: plex
          image: besn0847/arm-plex
          state: present
      tags:
          - plex

    - name: Restart container
      docker_container:
          name: plex
          image: besn0847/arm-plex
          state: started
          network_mode: host
          exposed_ports:
              - 32400
          volumes:
              - "/mnt/data/library:/data"
      tags:
          - plex

After running playbook, Plex Web App is available at “http://{{ raspberry IP }}:32400/web/index.html”, but at first you have to sign up Plex account. The “network-mode: host” is required, otherwise you can’t access Plex by “Authorization Error”.

Leave a Reply

Your email address will not be published. Required fields are marked *