INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]   Go Down

Author Topic: Docker Image for MC28  (Read 20612 times)

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #50 on: November 23, 2021, 02:01:51 pm »

Thanks Max, successfully upgraded.
For other Synology users who need reminding how to upgrade.

In the Docker App
1) Container tab. Stop the JRiver container
2) Registry tab.  Download the latest image.  Search for Shiomax then select jrivermc28
3) Wait for a notification that the download is complete
4) Container tab.  Reset the container.
5) Container tab.  Start the container.
Or, if you have Portainer installed, it's just <Recreate> and turn turn on "latest image"
Painless and less than a minute, just saying
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #51 on: November 28, 2021, 07:20:43 pm »

I'd also recommend giving the NAS a reserved IP on your router (so it doesn't change when DHCP leases update). If you want to access from outside your LAN, you also need to forward the port on your router.

OK so I disabled the firewall on my router and the firewall on my Synology, but still no dice loading it up in my chrome browser. Here are the settings in my container for shiomax.

What to check?
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Docker Image for MC28
« Reply #52 on: November 29, 2021, 06:32:51 am »

It says here you have your ports mapped to 49153 and up. Did you try to access those ports?
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #53 on: November 29, 2021, 09:41:30 am »

It says here you have your ports mapped to 49153 and up. Did you try to access those ports?

Max, the 49153 and up were all assigned by the Synology webgui AUTO . I have deleted the container and started fresh and set up the ports so that the Local Port is same as the Container Port. When I go to launch the container, I get an error message "Docker API has failed. Check log. Log says "Start container shiomax-jriver281 failed: {driver failed programming external connectivity on endpoint shiomax-jriver281and string of letters and numbers, then error starting userland proxy: listen udp4 0.0.0.0 1900: bind: address already in use.

As you can tell I am quite the newbie here and I'm determined to get this up and running.
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Docker Image for MC28
« Reply #54 on: November 29, 2021, 03:42:45 pm »

Use 1901 or something instead of 1900 then, looks like you already have another service that use 1900. Might be synology itself. You can also try without that port for now.
Logged

Richard Martin

  • World Citizen
  • ***
  • Posts: 237
Re: Docker Image for MC28
« Reply #55 on: November 29, 2021, 05:13:27 pm »

I don't have any port mappings in my set up and it works fine.  What do you have on the network tab? I have Network Name=host and Driver=host
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #56 on: November 29, 2021, 06:42:46 pm »

Use 1901 or something instead of 1900 then, looks like you already have another service that use 1900. Might be synology itself. You can also try without that port for now.

Hey Max, that worked. I changed out to 1901 and I can get it running without any errors now. Though I can not access anything using the WebGUI. I just get my synology home page when I put in <IP address:5900>. I am running in bridge mode, (not sure why the system set it up this way, because I know host mode is is easier for newbies like me than bridge mode.) I am going to try and switch the NAS over to Host mode. Any other things for me to check?
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #57 on: November 29, 2021, 06:45:13 pm »

I don't have any port mappings in my set up and it works fine.  What do you have on the network tab? I have Network Name=host and Driver=host

Richard,

Any thoughts on how to switch from Bridge Mode to Host mode?
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #58 on: November 29, 2021, 06:54:18 pm »

Well I disabled the Firewall on Synology and used :5800 in webGui and I got MC to appear. Quick question... is it OK to keep Firewall disabled or should set up an exception for the 5800 port?
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #59 on: November 30, 2021, 10:33:27 am »

On the Synology firewall settings allow the IP range of your local network and disallow everything else. The "allow" rule needs to be above the disallow rule. That way you can access from your LAN but nobody can access from outside.
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

Richard Martin

  • World Citizen
  • ***
  • Posts: 237
Re: Docker Image for MC28
« Reply #60 on: November 30, 2021, 11:37:38 am »

Richard,

Any thoughts on how to switch from Bridge Mode to Host mode?
If you select Bridge>Manage, you can delete the container from the bridge, whether that then make it use host mode I don't know, but it might!
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #61 on: November 30, 2021, 07:37:32 pm »

On the Synology firewall settings allow the IP range of your local network and disallow everything else. The "allow" rule needs to be above the disallow rule. That way you can access from your LAN but nobody can access from outside.
Mucho Gracias. Took a bit but I got it working.

Now that its running and I see the familiar MC image, I have to get MC to find my music files. When I try to import from my Music data files, I get an error opening directory 'music library' permission denied. I believe I set up all the folders as shared so I am not sure why this is happening. My files should be in a folder outside of docker so they do not get deleted when the image gets updated or deleted correct?
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #62 on: December 01, 2021, 10:45:10 am »

make sure you used the correct UID and GID when you spun up the container. You can find them by ssh'ing into your NAS and typing 'id'<ENTER> (without quotation marks) in the terminal
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Docker Image for MC28
« Reply #63 on: December 01, 2021, 10:47:24 am »

Mucho Gracias. Took a bit but I got it working.

Now that its running and I see the familiar MC image, I have to get MC to find my music files. When I try to import from my Music data files, I get an error opening directory 'music library' permission denied. I believe I set up all the folders as shared so I am not sure why this is happening. My files should be in a folder outside of docker so they do not get deleted when the image gets updated or deleted correct?

There is a section in the instructions for permissions. You have to find out what user it is that owns your media files (numeric id) and configure the container to use that one. By default it uses UID and GID 1000.

And no deleting the container won't delete anything you mounted into it.
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #64 on: December 01, 2021, 06:37:22 pm »

make sure you used the correct UID and GID when you spun up the container. You can find them by ssh'ing into your NAS and typing 'id'<ENTER> (without quotation marks) in the terminal

ssh'ing into your NAS?    That is all greek to me. I have had this Synology for about 15 days and working to find my way around it, but I have no clue how to operate in Linux, DOS or Windows for that matter. Thanks for the input, but I am lost.
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Docker Image for MC28
« Reply #65 on: December 02, 2021, 07:59:10 am »

ssh'ing into your NAS?    That is all greek to me. I have had this Synology for about 15 days and working to find my way around it, but I have no clue how to operate in Linux, DOS or Windows for that matter. Thanks for the input, but I am lost.

Move to a directory: cd <folder Name>
"cd .." to go up a dir
List directories where you are with owners included: ls -la
Where the f*ck am I: pwd
If LS does print a username and not a number: id <name>
To get the id.

That's all you could possibly need for this.

I think you can also do this in the docker console. When you navigate to your container Synology surely somewhere gotta have a console thing where you can get into the container. Then you navigate to /data/music or wherever you mounted your music to. LS should output the IDs not names next to the folders because the container is unaware of the names for those users.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #66 on: December 02, 2021, 10:48:32 am »

As I am sure you will need this in the future to work with your NAS, I would recommend looking up Command Line Interface access to Synology NAS via a Terminal session. e.g.
https://kb.synology.com/en-in/DSM/help/DSM/AdminCenter/system_terminal?version=6
There are a lot of good tutorials and help files out there from Synology and others.
Some basic skills with the CLI will be very useful to you. I have had my NAS for a couple of years now and have slowly acquired some very basic skills with the help of a lot of people on various forums. Max has been so helpful with setting up MC. I wouldn't have been able to do it without him.
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #67 on: December 05, 2021, 10:33:21 am »

As I am sure you will need this in the future to work with your NAS, I would recommend looking up Command Line Interface access to Synology NAS via a Terminal session. e.g.
https://kb.synology.com/en-in/DSM/help/DSM/AdminCenter/system_terminal?version=6
There are a lot of good tutorials and help files out there from Synology and others.
Some basic skills with the CLI will be very useful to you. I have had my NAS for a couple of years now and have slowly acquired some very basic skills with the help of a lot of people on various forums. Max has been so helpful with setting up MC. I wouldn't have been able to do it without him.

Thanks guys..... I will definitely check out the tutorials and learn more. I am in no real hurry as I do have to work on rebuilding my library. The good news is Western Digital recovery team just finished recovering all my data from my MyBook Live which was hacked like thousands of others this past June. I should be getting the data in a week or so and can work on getting that back up and sorted out in my Windows MC28.

More good news is I got real frustrated the other night and deleted the shiomax image , uninstalled docker and then reinstalled everything. I understand those that have Synology NAS have used Synology DSM to install this image with success. The first thing I noticed when starting fresh is that DSM only shows one network available and that is Bridge Mode. It does have an option for "Use same Network as Docker Host", but when you check that box, you get a message that "You Cannot Join other networks when using the same network as Docker Host". At first I thought I couldnt use Host mode but that is just a warning message. After checking Host mode I then went into Port Settings, wherein DSM states "Port Settings are not required when using the same network as Docker Host". Sounds too easy I thought. Well I was wrong. Right after launching the image, MC loaded right up in mt browser. I was now able to see all my wireless music devices in my network. Yeah.

My only issue right now is to getting the Volume mapped properly to import my music files. Current setup looks like this.


And I cant seem to files when setting up Auto Import.
The way I am seeing it, the the /Data Music folder holding all my music files should be located in /config/Music and then mount /data Music to that. Correct?
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #68 on: December 05, 2021, 11:00:01 am »

This is what my Volumes look like in Docker. The actual media reside in a shared folder on the NAS (/volume1/music)
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

Richard Martin

  • World Citizen
  • ***
  • Posts: 237
Re: Docker Image for MC28
« Reply #69 on: December 05, 2021, 01:58:25 pm »

That's pretty much what mine is, except that I don't have a separate mount for the library, it is in a sub folder of  /config, which I think is the default behaviour.

Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #70 on: December 05, 2021, 02:30:23 pm »

That's pretty much what mine is, except that I don't have a separate mount for the library, it is in a sub folder of  /config, which I think is the default behaviour.
And your media are stored in /volume1/docker/jrmusic/?
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

Richard Martin

  • World Citizen
  • ***
  • Posts: 237
Re: Docker Image for MC28
« Reply #71 on: December 05, 2021, 02:44:19 pm »

And your media are stored in /volume1/docker/jrmusic/?
no, my music is in /volume1/music, videos in /volume1/videos etc
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #72 on: December 05, 2021, 08:29:25 pm »

And your media are stored in /volume1/docker/jrmusic/?

OK so I changed folder and mount path to be exactly like you have things setup and still have issues. My music is stored in Volume1/Music. I created this in Control Panel. I then ran Import and then searched within the NAS and found data/music which  believe is the folder that Docker has it mounted to and received the message "permission denied".

I am approaching this such that the Folder where my files are stored is Music and the Mount Path is folder that I search in when looking to import the files, but this does not seem to be the case. I appreciate your taking the time to explain this but I am still at a loss.
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #73 on: December 06, 2021, 04:05:42 pm »

no, my music is in /volume1/music, videos in /volume1/videos etc
Well, that is the issue. I am not sure if the image can mount two different shares for video and audio. I do audio only and the setup I showed works. You can try to create a structure like this

/volume1/media/music/ and /volume1/media/video/ and then mount /volume1/media/ into the container using something like

-v /volume1/media:/data/music:rw \  or

-v /volume1/media/music:/data/music:rw \     and
-v /volume1/media/video:/data/video:rw \

I am not sure this would work but it's worth a try. Max would know for sure

EDIT: I think I got some posts confused (I failed to realize that there are two people with issues here, sorry)
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #74 on: December 06, 2021, 04:22:04 pm »

OK so I changed folder and mount path to be exactly like you have things setup and still have issues. My music is stored in Volume1/Music. I created this in Control Panel. I then ran Import and then searched within the NAS and found data/music which  believe is the folder that Docker has it mounted to and received the message "permission denied".

I am approaching this such that the Folder where my files are stored is Music and the Mount Path is folder that I search in when looking to import the files, but this does not seem to be the case. I appreciate your taking the time to explain this but I am still at a loss.

I think your folder structure is limiting for when you want to create more containers in the future. I'd recommend this structure for docker containers:

/volume1/docker/MC28 for JRiver, so that in the future you can have another container like  /volume1/docker/Portainer/ for example
then the data folder should be a sub-folder in /volume1/docker/MC28/ >> /volume1/docker/MC28/data/

Also make sure that the permissions on the media folders are set correctly in Disk Station Manager and that your UID and GID are correct
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

Richard Martin

  • World Citizen
  • ***
  • Posts: 237
Re: Docker Image for MC28
« Reply #75 on: December 08, 2021, 05:18:51 pm »



EDIT: I think I got some posts confused (I failed to realize that there are two people with issues here, sorry)

I don't have any issues, my config works.  I have shown what I have to try to help @joetiii
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #76 on: December 09, 2021, 09:56:29 am »

I don't have any issues, my config works.  I have shown what I have to try to help @joetiii
Yeah, sorry about that. getting too old ...
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

Richard Martin

  • World Citizen
  • ***
  • Posts: 237
Re: Docker Image for MC28
« Reply #77 on: December 10, 2021, 03:55:03 pm »

Yeah, sorry about that. getting too old ...
:) Me too
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #78 on: December 11, 2021, 10:40:04 am »

Thanks for all the help. I have the image up and running but have an issue with permissions. I am going to use the synology tutorials to try and figure out how to fix this. I will report back once I have time. My Library restoration will be taking up most all my waking moments.  :'(
Logged

HaWi

  • Citizen of the Universe
  • *****
  • Posts: 952
Re: Docker Image for MC28
« Reply #79 on: December 12, 2021, 11:29:53 am »

There is two types of permissions; the permissions that docker MC needs to access the library, and the permissions that you need to access docker. The latter is defined in your docker file (.yml) if you are using docker compose, or in the CLI instructions if you are using the Terminal to spin up the container (PID, GID).
The permissions to access your library are defined in the Synology Disk Station Manager.
In DSM you can just right click the top folder of your media ([music] in my case) and select <Properties> and then click <Permissions>. There you get all the options to set permissions for all the services and users. Make sure you check the box <Apply this to folders, subfolders and files> at the bottom of the screen. I have set my entire [music] folder to full access.
Logged
rPi5/8GB, Debian 12 Bookworm on SSD | JRMark (33.0.49): 2758
MacBookPro (2013), 2.6 GHz Quad-Core Intel Core i7, MacOS 11.7.17 | JRMark (33.0.49): 3185
Mac Studio M2 Max, 64GB, 1TB SSD, macOS Sequoia 15.1.1 | JRMark (33.0.49): 9181
Docker Container (shiomax) DS1819+ | JRMark (33.0.44): 1499
JRemote 3.43
MO 4Media 1.5.7 | Marantz SR7007 (RSL 5.1) HDMI to MacBookPro

crypticc

  • Member
  • *
  • Posts: 1
Re: Docker Image for MC28
« Reply #80 on: January 09, 2022, 09:55:09 am »

Hello

I'm trying out JRiver running in docker container on my QNAP
I have managed to get it working including both as DLNA server and DLNA controller.  But I can't get it to act as a local player.  Or rather I can but I don't get any audio

this is my first post but I'm hoping to have done enough b4 asking for help here that someone more experienced might be able to help.

Thank you
Chris


This is my docker-compose.yml file

Code: [Select]
version: '3'
services:
  jrivermc28:
    image: shiomax/jrivermc28
    restart: always
    container_name: jrivermc28
    network_mode: host
    environment:
      - VNC_PASSWORD=mypassword
      - USER_ID=1004
      - GROUP_ID=100
      - DISPLAY_WIDTH=1920
      - DISPLAY_HEIGHT=1080
      - TZ=Europe/London
    volumes:
      - /share/Container/JRiver/config:/config:rw
      - /share/Multimedia/Music:/data/music:rw
      - /share/Container/JRiver/data/Library:/data/Library:rw
    devices:
  - '/dev/snd/'
    device_cgroup_rules:
          - 'c 116:* rmw'
          - 'c 14:* rmw'
          - 'c 188:* rmw'
          - 'c 189:* rmw'


I added all the USB looking devices into cgroup devices although i think it's 189 which is the actual device

If relevant this is the USB device I'm trying to output to
Code: [Select]
Bus 001 Device 007: ID 22d9:0461
Here's cat /proc/devices
Code: [Select]
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 14 sound
 21 sg
 29 fb
 81 video4linux
 86 ch
 89 i2c
108 ppp
116 alsa
128 ptm
136 pts
166 ttyACM
180 usb
188 ttyUSB
189 usb_device
202 cpu/msr
212 DVB
216 rfcomm
226 drm
238 usdm_drv
239 qat_dev_processes
240 qat_adf_ctl
241 uio
242 vfio
243 ql2xapidev
244 ttySDIO
245 rpmb
246 nvme
247 bsg
248 watchdog
249 ptp
250 pps
251 lirc
252 rtc
253 dax
254 gpiochip

Block devices:
  1 ramdisk
  7 loop
  8 sd
  9 md
 11 sr
 43 nbd
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
147 drbd
179 mmc
251 fbsnap
252 fbdisk
253 device-mapper
254 mdp
259 blkext
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Docker Image for MC28
« Reply #81 on: January 11, 2022, 06:12:57 am »

The USB device is irrelevant you can select what output you want in alsamixer on your docker host.

Test if you can play audio with aplay on the system first (not in the container).

You need a working alsa on the docker host for it to work in the container.
Logged

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3122
Re: Docker Image for MC28
« Reply #82 on: March 22, 2022, 07:05:20 pm »

Is it possible to get Hardware-Accelerated Encoding to work with Docker?  I have a Synology DS220+ with an Intel processor that is capable of this, but the CPU is pegged when it is converting MP4 videos (h264,aac) with the option checked in MC.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Docker Image for MC28
« Reply #83 on: March 22, 2022, 09:53:26 pm »

Currently not an option built into the container. You can try to install it yourself. You'd need Intels drivers in the container, expose the GPU device to the container and give the user that you configured to run the container as permissions to use it by adding it to the render group (inside the container).

This seems how they do it for jellyfin mostly it should be the same https://forum.openmediavault.org/index.php?thread/38696-how-to-activate-intel-quick-sync-in-docker-jellyfin-handbrake/

To set the group you can mount an additional init script like this one https://gitlab.com/shiomax/jrivermc-docker/-/blob/master/rootfs/etc/cont-init.d/10-check-snd.sh

You can mount another script to /etc/cont-init.d/10-set-render-group.sh or similar.

Code: [Select]
#!/usr/bin/with-contenv sh
echo -n render >> /var/run/s6/container_environment/SUP_GROUP_IDS

Hope that helps. If you get it working you could share the init script / steps. Could add it as an option to setup in the container then.

The script that adds the audio group if you passed threw /dev/snd would interfear with it if you did that as it overrides that variable at startup too. This worked for now because there was only one group to add but there would have to be additional checks to not blindly override SUP_GROUP_IDS but append to it if something is already there. It's supposed to be a comma separated list. So better to not pass threw /dev/snd for testing now.
Logged

cncb

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3122
Re: Docker Image for MC28
« Reply #84 on: March 23, 2022, 04:40:22 pm »

Thanks.  I might try it but I am not very skilled in Linux.
Logged
-Craig    MO 4Media remote and player:  Android/TV/Auto | iOS | Windows 10/UWP

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #85 on: March 29, 2022, 03:46:26 pm »

There is a section in the instructions for permissions. You have to find out what user it is that owns your media files (numeric id) and configure the container to use that one. By default it uses UID and GID 1000.

And no deleting the container won't delete anything you mounted into it.

Ok so I have been rebuilding my music files on my PC for the past few months and now working on identifying how docker was setup. Hooray... I was able to SSH in to discover that the UID = 1026, GID =100, Groups=100, Admin=101. I changed the environment in shiomax to reflect the differing UID and GID.. I then went into docker to see that the shared folders I have set up have full permissions so I should be all set to run auto import correct?

Do I need to reboot my systems, because when I launch the image, all I get is a countdown with no files being imported. HELP!
Logged

Richard Martin

  • World Citizen
  • ***
  • Posts: 237
Re: Docker Image for MC28
« Reply #86 on: March 29, 2022, 04:25:52 pm »

Ok so I have been rebuilding my music files on my PC for the past few months and now working on identifying how docker was setup. Hooray... I was able to SSH in to discover that the UID = 1026, GID =100, Groups=100, Admin=101. I changed the environment in shiomax to reflect the differing UID and GID.. I then went into docker to see that the shared folders I have set up have full permissions so I should be all set to run auto import correct?

Do I need to reboot my systems, because when I launch the image, all I get is a countdown with no files being imported. HELP!
If I was you my next step would be to turn off auto import for now and try a manual import, when you have that working turn auto import back on.
No, I don't think you need to reboot anything after setting permissions, but you should restart the container after updating the environment variables.
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #87 on: March 29, 2022, 08:15:11 pm »

OK so here we go with tracking down why my setup won't import my music files. I have setup my Volume Environment as pictured and my Music files reside in folder Volume1/data/Music Files.

I have corrected my permissions issue so that User Id and Group Id are same between my PC and docker as seen below.

Yet when I go to import my files from Volume1/data/Music Files I get a big fat zero. What am I doing wrong?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72534
  • Where did I put my teeth?
Re: Docker Image for MC28
« Reply #88 on: March 30, 2022, 07:22:58 am »

Something that is different about Linux.  The case matters.  I don't know if that helps or not.
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2677
Re: Docker Image for MC28
« Reply #89 on: March 30, 2022, 08:24:00 am »

OK so here we go with tracking down why my setup won't install my music files. I have setup my Volume Environment as pictured and my Music files reside in folder Volume1/data/Music Files.

I have corrected my permissions issue so that User Id and Group Id are same between my PC and docker as seen below.

Yet when I go to import my files from Volume1/data/Music Files I get a big fat zero. What am I doing wrong?

Your files are located at the mount paths in the container (not the host path), one of which is invalid.
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #90 on: April 20, 2022, 08:58:52 pm »

Your files are located at the mount paths in the container (not the host path), one of which is invalid.

So BryanC, please explain in detail what I need to change.

Not sure what is invalid?

I am fairly illiterate with computers so I tend to copy other's configurations and don't really understand how this all works even after reading it over and over.

TIA.
Logged

max096

  • MC Beta Team
  • Galactic Citizen
  • *****
  • Posts: 363
Re: Docker Image for MC28
« Reply #91 on: April 21, 2022, 08:08:57 am »

So BryanC, please explain in detail what I need to change.

Not sure what is invalid?

I am fairly illiterate with computers so I tend to copy other's configurations and don't really understand how this all works even after reading it over and over.

TIA.

Looking at your screenshot your mount paths are those
"/data/library"
"/data/music"
"/Data Music"

When you access the containers Web UI or VNC and you donīt find songs in any of those locations that means there arenīt any files on your host at that location so the column to the left "File/Folder" is wrong. If you see them but cannot access them thatīs a different problem. The mount paths can only be wrong in so far as the music will end up in a folder you didnīt intend it to go into. But really you can pick anything that makes sence to you. Just the host path (File/Folder) has to be accurate as thatīs where the files are really from.
Logged

joetiii

  • World Citizen
  • ***
  • Posts: 178
Re: Docker Image for MC28
« Reply #92 on: April 21, 2022, 05:30:03 pm »

Max, You're the best. All I had to do was change my mount Path and the Image found my files to import.

Very happy camper thanks.
Logged
Pages: 1 [2]   Go Up