how to: run Kodi in a Docker container with audio and video
#31
(2020-11-12, 20:08)k2eric Wrote:  
FWIW I have a systemd unit, /etc/systemd/system/docker-kodi.service, that keeps Kodi alive. If I reboot or turn of Kodi via the power menu, it will come right back up. Hopefully that will be useful?

Can I ask, as I see you also use ALSA for audio, what your audio setup is?
I'm having an issue, with 5.1 audio over HDMI, where my center and LFE channels are swapped.
It seems like the kodi-docker container goes straight for the hardware output and bypasses any remapping I've attempted with asound.conf, but I have this issue running Kodi as standard also so I'm just wondering if you have encountered similar?
I think I could fix it with pulseaudio but I'd rather not have the extra layer if its not necessary.
Reply
#32
@k2eric

Hi,

I wanted to ask you if it is possible to have LibreElec in your docker
Sorry for grammatical errors, use an online translator
Reply
#33
[font][font]please can you explain how to install it?

i didn't understand how to with proxmox[/font][/font]
Reply
#34
Did you ever resolve this? I too would like to be able to trigger a display output and swap containers between displays.
Reply
#35
Does this still work?

I installed x11docker and that seems okay, at least at the most basic level. Then I try to do --build to build the image:
 

~$ x11docker --build erichough/kodi
x11docker note: Download of https://raw.githubusercontent.com/mviere...Dockerfile

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    14  100    14    0     0     90      0 --:--:-- --:--:-- --:--:--    91
x11docker note: Building x11docker/erichough/kodi

/usr/bin/x11docker: line 1347: build: command not found

x11docker ERROR: Option --build: Building image 'x11docker/erichough/kodi' failed.

  Type 'x11docker --help' for usage information
  Debug options: '--verbose' (full log) or '--debug' (log excerpt).
  Logfile will be: /home/play/.cache/x11docker/x11docker.log
  Please report issues at https://github.com/mviereck/x11docker


Edit: it looks like it's 404-ing on the docker file.
Reply
#36
Does anyone actually have a working docker setup with kodi currently? Especially a one using GBM? If so could you copy me your configs?
Reply
#37
So after weeks trying to get this running on Ubuntu I switched to Debian and that seems to work. As I felt there are little to none working examples out there, here my setup.
It works on a command line only machine, i.e., my NAS, TV is connected via HDMI
I could not get it running yet with an unprivileged user, so the user creation does nothing so far.

Dockerfile in kodi subdirectory:
https://paste.kodi.tv/vofozibuya

Docker compose, can just be started with "docker compose up -d". Of course needs adapted network and paths.

https://paste.kodi.tv/iduyiziwag.kodi
Reply
#38
@chris42 - looks like the forum software didn't like the code snippets, so I've transferred them to the paste site for you.

I think I got everything for each, but can you please double-check.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#39
(2023-10-30, 21:39)DarrenHill Wrote: @chris42 - looks like the forum software didn't like the code snippets, so I've transferred them to the paste site for you.

I think I got everything for each, but can you please double-check.

Apparently yes. Thanks for fixing it. Got distracted before I could check back. I think in the 2nd snippet you did not separate of the entrypoint.sh from the compose file.
Otherwise it looks good
Reply

Logout Mark Read Team Forum Stats Members Help
how to: run Kodi in a Docker container with audio and video1