NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker arm32v7 v
« Previous 1 2
Few Working questions.

 
  • 0 Vote(s) - 0 Average
Few Working questions.
KyleC_USA
Offline

Member

Posts: 63
Threads: 8
Joined: Mar 2018
#1
2019-09-15, 04:29 AM
Hello,

I have NextPVR v5 running on my Pi3+ and wondering how to make it automatically start when I reboot the Pi.

Also where is the CONTAINER ID: and NAME: coming from? I am trying to learn to use docker.

Thanks in advance for you time.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2019-09-15, 05:28 PM
To be honest, I'm not 100% sure of the best way to have docker auto start a container when you restart the Pi. I'm still learning about Docker myself. There will be plenty of info out on the internet about auto-starting containers etc. I'll be interested to hear how you end up doing it.

The IMAGE name is 'nextpvr'. Each time you run it, it is allocated a container, which has a container id and name (which can be useful if you're running multiple of the same docker application simultaneously). By default these change every time it's run. You can use the "--name=some_container" to tell docker to give you running container a specific name.
Code:
graeme@tardis:~$ sudo docker container ls                                                                                                                                    
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                NAMES                                                          
89792305aee8        nextpvr             "dotnet /app/NextPVR…"   31 seconds ago      Up 29 seconds       8026/tcp, 8866/tcp   frosty_kare
KyleC_USA
Offline

Member

Posts: 63
Threads: 8
Joined: Mar 2018
#3
2019-09-15, 05:51 PM
sub Wrote:To be honest, I'm not 100% sure of the best way to have docker auto start a container when you restart the Pi. I'm still learning about Docker myself. There will be plenty of info out on the internet about auto-starting containers etc. I'll be interested to hear how you end up doing it.

The IMAGE name is 'nextpvr'. Each time you run it, it is allocated a container, which has a container id and name (which can be useful if you're running multiple of the same docker application simultaneously). By default these change every time it's run. You can use the "--name=some_container" to tell docker to give you running container a specific name.
Code:
graeme@tardis:~$ sudo docker container ls                                                                                                                                    
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                NAMES                                                          
89792305aee8        nextpvr             "dotnet /app/NextPVR…"   31 seconds ago      Up 29 seconds       8026/tcp, 8866/tcp   frosty_kare


Thanks for the reply,

I was able to have NextPVR v5 restart after I reboot my Pi3B+ by changing the run command. to look like below:

sudo docker run --restart unless-stopped -d \

This will allow NextPVR to restart during a "crash" or when I reboot the Pi3B+ system.

It is a Docker restart "policy" I found it in the documentation.
https://docs.docker.com/config/container...matically/

Use a restart policy
To configure the restart policy for a container, use the --restart flag when using the docker run command. The value of the --restart flag can be any of the following:

Flag Description
no ------ Do not automatically restart the container. (the default)
on-failure ----- Restart the container if it exits due to an error, which manifests as a non-zero exit code.
always ----- Always restart the container if it stops. If it is manually stopped, it is restarted only when Docker daemon restarts or the container itself is manually restarted. (See the second bullet listed in restart policy details)
unless-stopped ----- Similar to always, except that when the container is stopped (manually or otherwise), it is not restarted even after Docker daemon restarts.


This is working Great!

Another question. I was thinking I was having some tuner issues so I purchased a newer HDHomeRun Quatro. But I still have my two HDHomRun DUO's.
I am going to remove the DUO's I am sure the Pi3B+ cannot record (8) tuners at once. How do I remove the device from the settings. Even though they are off I show them in Next PVR as devices but disconnected.

Thanks again Have a great day!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2019-09-15, 06:00 PM
Quote:Thanks for the reply,

I was able to have NextPVR v5 restart after I reboot my Pi3B+ by changing the run command. to look like below:

sudo docker run --restart unless-stopped -d \

This will allow NextPVR to restart during a "crash" or when I reboot the Pi3B+ system.

It is a Docker restart "policy" I found it in the documentation.
https://docs.docker.com/config/conta...automatically/

Use a restart policy
To configure the restart policy for a container, use the --restart flag when using the docker run command. The value of the --restart flag can be any of the following:

Flag Description
no ------ Do not automatically restart the container. (the default)
on-failure ----- Restart the container if it exits due to an error, which manifests as a non-zero exit code.
always ----- Always restart the container if it stops. If it is manually stopped, it is restarted only when Docker daemon restarts or the container itself is manually restarted. (See the second bullet listed in restart policy details)
unless-stopped ----- Similar to always, except that when the container is stopped (manually or otherwise), it is not restarted even after Docker daemon restarts.


This is working Great!
Cheers - good info!

Quote:Another question. I was thinking I was having some tuner issues so I purchased a newer HDHomeRun Quatro. But I still have my two HDHomRun DUO's.
I am going to remove the DUO's I am sure the Pi3B+ cannot record (8) tuners at once. How do I remove the device from the settings. Even though they are off I show them in Next PVR as devices but disconnected.
In the web app, on the Settings->Devices page, hold down the Ctrl key on your keyboard, and you'll see trashcan icons appear next to the devices.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Always stops working after some time (2) calande 5 576 2024-10-21, 01:53 PM
Last Post: calande
  Always stops working after some time phu 17 2,244 2023-12-20, 05:37 PM
Last Post: mvallevand
  Not working after update joshskey 19 7,458 2019-09-16, 11:31 PM
Last Post: KyleC_USA

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode