Docker Desktop on Windows

Is there a way to save all my settings so that I don't have to add the sources every time my pc reboots. Docker starts and my channels dvr container says running but the sources are blank. Thanks for any help.

Make sure your /channels-dvr mount is not set to read-only.

here are my volumes listed in docker-compose.yml:
volumes:
- /mnt/disk/dvr/config:/channels-dvr
- /mnt/disk/dvr/recordings:/shares/DVR
I can't find any of those when I search in Windows. Not sure what I'm doing wrong.

Well, you're not putting your own directories in there; that's the problem with blindly copy-and-pasting from the internet.

Where you have /mnt/disk/dvr/config you need to have the path to where you want Channels to store its settings on your own computer.

You may want to check the documentation to get a better handle on how Docker works:

1 Like

Thanks for the reference doc. I'm still confused on how to change the path to something on my pc. It seems no matter what I input in the volumes: I get an ERROR: In file '.\docker-compose.yml', volumes must be a mapping, not an array. Not sure what to change in my yml file. I tried this and many other alterations and get the same error.

volumes:

  • /mnt/C:\ChannelsDVRMainConfig:/channels-dvr
  • /mnt/C:\ChannelsDVRMain:/shares/DVR

Why do your local paths start with /mnt/? And why are you mixing Unix-style path separators (/) with Windows-style path separators (\) in the same path?

1 Like

Mostly because I don't know what I'm doing. which style should I be using?

Is this closer to what it should be:
volumes:

  • /C:/ChannelsDVRMainConfig:/channels-dvr
  • /C:/ChannelsDVRMain:/shares/DVR
1 Like

Assuming the two directories you are trying to mount into your container actually exist on your hard drive, then your YAML should include something like:

volumes:
  - //c/ChannelsDVRMainConfig:/channels-dvr
  - //c/ChannelsDVRMain:/shares/DVR

(It looks like the above ought to work. Docker isn't the best software in general, and trying to shoehorn it into Windows makes things even more difficult. Honestly, I'm surprised anybody gets things done with Docker on Windows considering what a clusterf— it is.

If you wish to pursue this avenue, I suggest checking some Docker specific forums, as you'll probably get more help there. And if you're certain you want to use Docker with Channels, then I'd personally recommend you look at using a Linux install as your base and stay away from Windows.

With that said, I'm going to bow out of this discussion now, as this is a Channels forum, not a Docker how-to forum.)

Edit: I changed the path descriptions above; after browsing a few quick searches, that appears to be the solution, assuming you have Docker setup correctly to begin with. You may also want to do some more independent searching/sleuthing to get a better handle on Docker in general.

1 Like

The Below worked thanks to cdDVRUSER ... make sure these folders are created. C:\ChannelsDVRMain\config and change TZ and port to what you want.

docker run -p 8089:8089 -e TZ=America/Los_Angeles --detach --name=channels-dvr --restart=always --volume C:\ChannelsDVRMain\config:/channels-dvr --volume C:\ChannelsDVRMain:/ChannelsDVRMain fancybits/channels-dvr:tve
1 Like

Tried both of you guys recommendations and still get errors. Thanks for your time and effort. I need to do more studying and understanding of how docker works. I will say I do have MLB, Pluto, and Stirr all working on Channels in docker desktop perfectly. Thanks again and have a great day.

Are you stuck in the logon part to the dvr ?

Don't blame me for your typo's :smile:

volume mappings should be
--volume C:\ChannelsDVRMain\Config:/channels-dvr
--volume C:\ChannelsDVRMain:/shares/DVR

Command should be

docker run -p 8089:8089 -e TZ=America/Los_Angeles --detach --name=channels-dvr --restart=always --volume C:\ChannelsDVRMain\config:/channels-dvr --volume C:\ChannelsDVRMain:/shares/DVR fancybits/channels-dvr:tve
1 Like

It is not typo's it is the way this forum treats \ they disappear unless you use 2 \

Typo

You are right where did that go it is ok on my end. No wonder it gets confusing.

I'd also recommend using a different path for config files, as you don't want that in your DVR recording path if you ever migrate to another platform. If you moved your DVR directory to the new platform you would be copying the runtime code with it.

So --volume C:\ChannelsDVRMain\Config:/channels-dvr
should be --volume C:\ChannelsDVRMainConfig:/channels-dvr
or something else outside of C:\ChannelsDVRMain

Screenshot 2021-08-29 100054

Exactly.
But you had posted --volume C:\ChannelsDVRMain\config:/channels-dvr

I redid it after your recommended post took only a minute or so.

1 Like