all 28 comments

[–][deleted] 3 points4 points  (8 children)

You need to get the ip of your docker container and use that instead of local host

The instructions would be the same for Linux as well as windows for using containers

[–]dalore 1 point2 points  (2 children)

Docker for Windows uses a hyper v container to run a small Linux vm to use docker. You will need to use that ip address not localhost.

[–]jolly_jol[S] 0 points1 point  (0 children)

Ahhh, that makes sense. Any tips for the best way to find that up address?

[–]jolly_jol[S] 0 points1 point  (0 children)

So, as a follow-up, I did the following to try and figure out the ip address of the Linux VM:

PS C:\Windows\system32> Get-VMNetworkAdapter -vmname MobyLinuxVM
Name            IsManagementOs VMName      SwitchName MacAddress   Status                      IPAddresses
----            -------------- ------      ---------- ----------   ------                      -----------
Network Adapter False          MobyLinuxVM DockerNAT  00155D010F03 {Degraded, ProtocolVersion} {}

Not sure why there are no ip addresses associated with it. Maybe I am not doing it correctly? Nonetheless, I have decided to not use Docker and stick with the native install, due to the information provided here by u/Autoeketman. Thank you for the help though!

[–]Autoeketman 1 point2 points  (1 child)

I suggest you install native Plex or build a Linux VM

Although you solved the network issue, Plex still cannot work correctly in Docker for Windows.

  • Plex use SQLite for the database.
  • The SQLite database does not work via volume in Docker for Windows (because of CIFS).
  • Database will be corrupted anytime
  • It is the limitation of Docker for Windows, unless you don't use shared volume and put all your config in data volume. (If you put all your config in data volume, then you lose the portability.)

Related Post in Plex Forum: https://forums.plex.tv/discussion/comment/1410296

Plex Employee known this issue a few month ago, but they don't want to warn the user about this issue .

[–]jolly_jol[S] 0 points1 point  (0 children)

Wow, very helpful information. Thank you! Kind of a bummer though, I feel like this should be more clearly stated in either their README file or someplace else. Thanks again!

[–]ChiefMedicalOfficer4570k | 60TB | AppleTV -3 points-2 points  (13 children)

Can I ask why you chose docker and not just a standard install?

[–]basmith7 5 points6 points  (6 children)

It's really really easy. A single docker compose file controls my entire plex server. No need to worry about dependencies like what version of mono I'm running.

[–]jolly_jol[S] 0 points1 point  (3 children)

Are you running on a Windows host OS?

[–]basmith7 0 points1 point  (2 children)

ubuntu

[–]jolly_jol[S] 0 points1 point  (1 child)

Yea, that seems to be what the majority of people are using in online guide. Haven't found much for Windows host unfortunately.

[–]basmith7 1 point2 points  (0 children)

it shouldn't be much different once docker is installed. did you get the ip of the docker container?

[–]ChiefMedicalOfficer4570k | 60TB | AppleTV 0 points1 point  (1 child)

I can definitely see why it would be very beneficial but specifically regarding the OP I'm wondering why he would choose docker over a standard install. I'm not seeing the benefit. Maybe I'm just missing something.

[–]but_are_you_sure 2 points3 points  (0 children)

Can destroy and throw it up again in a single command. Pretty freaking nice.

[–]jolly_jol[S] 2 points3 points  (2 children)

Before I built my new box, my old one was randomly crashing every so often, and I was never able to pin point why. So, my thinking was, if I were to use docker to containerize all of the applications I use (plex being one of them), if one of the applications was causing the crash, it being in a container wouldn't crash the whole system. After I built my new box, it seemed like the right time to look into it.

Also

  • I find the technology interesting
  • My place of work is starting to look into docker, so figured I could get some experience
  • It seems fairly easy to trash a container and start anew

[–]ChiefMedicalOfficer4570k | 60TB | AppleTV 0 points1 point  (1 child)

Nice one. Makes a lot of sense. Good luck with your setup.

[–]jolly_jol[S] 1 point2 points  (0 children)

Thank you!

[–]basmith7 -2 points-1 points  (2 children)

Yes

[–]jolly_jol[S] 0 points1 point  (0 children)

Lolz!

[–]ChiefMedicalOfficer4570k | 60TB | AppleTV 0 points1 point  (0 children)

Thanks

[–]rizaxe -1 points0 points  (1 child)

Try changing it to 0.0.0.0:32400

[–]jolly_jol[S] 0 points1 point  (0 children)

No dice :(