Windows Server 2016 Docker Container

Hi,

Iam loking for some information/guide for running PMS in windows docker container.

I am also looking for this. I have tried to create one myself, but no luck so far. My issue is that I cannot install plexserver.exe headless in Windows.

I don’t even know how to start to do this, but I have a windows 2016 server running on my nas now. So, this is very interesting to me.

Did anyone manage to do this ?

I know this is an old thread, but I have managed to get a Windows 2016 server docker image to run plex. I’ve been using this image for now over 6 months and it works wonderfully.

I’m still learning about docker so I’m not ready to post a Docker-compose file or an actual image but here are the steps to do it yourself.

1st Start an interactive docker container using the windowsservercore image from microsoft. Also I’m forwarding the plex port so it can be accessed through the host and my volumes mapping aswell.

docker run -it --name plex -p 32400:32400/tcp -v D:\:C:\Host\D\ -v G:\:C:\Host\G\ microsoft/windowsservercore powershell

You should now by in the powershell of the container we just created.

2nd you need to install Server Media Foundation, the problem here is that it requires a restart and for some reason upon restarting the docker container the installation is gone. So with this code you can change the restart required flag to no for Server Media Foundation installation package

Get-ChildItem "$Env:SystemRoot\Servicing\Packages\*Media*.mum" | ForEach-Object { (Get-Content $_) -replace 'required','no' | Set-Content $_}

then proceed with the installation
Install-WindowsFeature Server-Media-Foundation

3rd we need to download plex (replace the URL with the version of Plex you want, just copy the url from the download page). it will save the file as Plex.exe on the C drive of the container.

(New-Object Net.WebClient).DownloadFile('https://downloads.plex.tv/plex-media-server/1.12.3.4973-215c28d86/Plex-Media-Server-1.12.3.4973-215c28d86.exe', 'c:\plex.exe')

Then run the installation quietly

.\plex.exe /quiet

4th, start Plex Server

start 'C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe'

Now you can access your server on your Container’s IP on port 32400 to configure it.

My image is not perfect, from from it, I still need to tweak it but I have been lazy. :wink:

I need to find a way to run the image as non-interactive, but I didn’t have the time to tinker with it and it works fine.

So if you need to restart your container, you will need to start Plex server manually everytime.

Hope this helps anyone.

Hey guys I know this is an old thread,just wondering if anyone got this working? Or has a Docker-compose file? I keep getting errors saying unable to run on OS, then have a problem when switching to Linux docker?
Running on windows server 2016 essentials
Thanks