RobbieGOP•

I'm new to both QNAP and Docker. Does anyone have a nice step-by-step guide on how to use this with QNAP's Container Station? I'm unclear how to translate some of the other Docker guides into the Container Station.

2
sccofer•

It's really pretty easy, map your external/container ports. Make sure to mount the shares with your media when building the Docker and that's about it. If you have specific questions feel free to ask and I will help. Everything you need to get it up and running can be managed through the qnap container UI.

2
RobbieGOP•

Thanks for the reply. The details of what you're describing is what I'm struggling with. It seems a lot of the tutorials online involve editing some configuration file, but I think I can do a lot of this directly with the QNAP container UI. Here's what I've done:

  • Via the Container Station, I installed "plexinc/pms-docker" from the Docker Hub.

  • I clicked "create", which brought up the "Create Container" window. (I think this is where I'm supposed to be doing things)

  • I kept everything default (likely my downfall), including the "Advanced Settings", and clicked "Create"

  • With the container running, it gives me a link that is mapped to port 32400 (along with another link mapped to port 32469). When I click the 32400 link, I just get a webpage that says:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    <MediaContainer ....

Besides just getting Plex running, I would like to have a better knowledge of how to setup/edit/tweak Docker cointainers with the QNAP container UI.

Thanks for the help. Once I get this figured out, I might make a nice guide with screen shots for other newbies like myself.

1
sccofer•

Try 32400/web to get to the UI. You will want to click on advanced and set the host and container port otherwise the port will change when you stop and start it. . You will also want to map you shares under the advanced tab. It's easy to redeploy the container so just stop it and play around and redeploy it. I am traveling but will try and put up some screen pics to show you the advanced settings.

1
RobbieGOP•

Thanks for the /web, that worked to access the Plex GUI.

I'm playing around with creating a new container. In Create Container > Advanced Settings > Shared Folders > Volume from host > Host Path, I only see some of the directories on the disk (NOT including /Multimedia). Is there something I need to do to have this directory available for use by Docker/Container Station/Plex?

1
sccofer•

The built in shares arent in the list can't remember why, either create new shares and move your media or you have to ssh into the directory where the container is and create a symbolic link to the built in share you want to use.

1
MwC_Trexx•

A couple things I would do:

  1. Get a good docker boot to help understand Docker. I have purchased this one and like it. https://www.dockerbook.com

  2. Container Station is limited some in what you can do, and what you can change. You don't HAVE to use it to setup dockers.

A way to see some good examples to start from is looking at something like this: https://hub.docker.com/r/linuxserver/plex/

While this isn't the official PLEX docker, it give you an idea of how you can do things via command line.

I use something similar to setup my TVHeadend docker container and I never touch the Container Station GUI (well other than to set the autostart/run flag).

docker create --name=tvheadend  \
	--net=host \
	-v /share/Docker_configs/tvheadend:/config  \
	-v /share/Multimedia/Video/TVHeadend:/data/tvshows  \
    linuxserver/tvheadend
1
RobbieGOP•

Do you put that code into a config file somewhere so it runs automatically? Or do you manually put it into the console every time?

1
MwC_Trexx•

I run that command ONCE to create my TVHeadend Docker container. After that it is all set to go. I do go into Container station to set the auto run/start flag on it (have to figure that one out yet), but that is all I do in container station for it.

There are 2 Docker volumes (config & data) that point back to 2 shared folders on my QNAP.

That way even if I have to recreate the container from scratch, my configuration data is already there. I also back it up to ext. USB in case I need to do a full system reload, change NAS, etc.

1
martinjh99•

to start a container up on boot - add this:

 --restart=always

to that command line...

1