0622.html 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running Plex Media Server in Docker on Ubuntu Server</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Docker,Docker Host,Docker How To,Docker Installation Tutorial,Docker Simplified,Docker Tutorial,Getting Started With Docker,Ubuntu,Starting A Plex Media Server,Plex Server,Plex Media Server,Plex,Media Server,Linux,How To Install Plex In Docker,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running Plex Media Server in Docker on Ubuntu Server">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="01/19/2023 07:53:58 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Running Plex Media Server in Docker on Ubuntu Server</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Plex?</h2>
  26. <p><em>Plex brings together all the media that matters to you. Your personal collection will look beautiful alongside stellar streaming content. Enjoy Live TV &amp; DVR, a growing catalog of great web shows, news, and podcasts. It&#39;s finally possible to enjoy all the media you love in a single app, on any device, no matter where you are.</em> -<a href="https://www.plex.tv/" target="_blank">https://www.plex.tv/</a></p>
  27. <h2>Installing Docker</h2>
  28. <ol>
  29. <li>Log into the Linux host and run the following commands in a terminal window
  30. <div class="codeBlock"># update software respositories<br />
  31. sudo apt update<br />
  32. # install available software updates<br />
  33. sudo apt upgrade -y<br />
  34. # install prerequisites<br />
  35. sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y<br />
  36. # add docker gpg key<br />
  37. curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -<br />
  38. # add docker apt repository<br />
  39. sudo add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable&quot;<br />
  40. # install docker<br />
  41. sudo apt install docker-ce docker-compose containerd.io -y<br />
  42. # add the current user to the docker group<br />
  43. sudo usermod -aG docker $USER<br />
  44. # reauthenticate for the new group membership to take effect<br />
  45. su - $USER</div>
  46. </li>
  47. </ol>
  48. <h2>Running Plex Media Server Container</h2>
  49. <ol>
  50. <li>Continue with the following commands in a terminal window
  51. <div class="codeBlock"># create working directories<br />
  52. mkdir ~/docker/plex/data -p &amp;&amp; mkdir ~/docker/plex/transcode -p &amp;&amp; mkdir ~/docker/plex/media -p<br />
  53. # set owner of working directories<br />
  54. sudo chown &quot;$USER&quot;:&quot;$USER&quot; ~/docker -R<br />
  55. # run the plex media center docker container<br />
  56. docker run -d --name plex --network=host -e TZ=&quot;America/New_York&quot; -v ~/docker/plex/data:/config -v ~/docker/plex/transcode:/transcode -v ~/docker/plex/media:/data --restart=unless-stopped plexinc/pms-docker</div>
  57. </li>
  58. <li>Open a web browser and navigate to http://DNSorIP:32400/web</li>
  59. <li>Log in with one of the available options or click sign up with email</li>
  60. <li>Give the Plex server a name &gt; Click Next</li>
  61. <li>Click the Add Library button &gt; Select the media type</li>
  62. <li>Select Add folders from the left navigation &gt; Click Browse for media folder &gt; Select the folder to add to the media &gt; Click Add Library</li>
  63. <li>Click Next</li>
  64. <li>Click Done to complete the server setup</li>
  65. <li>Welcome to Plex Media Server</li>
  66. </ol>
  67. <p>Source: <a href="https://hub.docker.com/r/plexinc/pms-docker" target="_blank">https://hub.docker.com/r/plexinc/pms-docker</a></p> </div>
  68. </div>
  69. </body>
  70. </html>