Skip to content

Kodi GUI without X11 in a docker container

Notifications You must be signed in to change notification settings

sejun168/docker-kodi-gbm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-kodi-gbm

The idea of this container is to run Kodi on a X86 linux without X11. Kodi is compiled without X11 and will therefore directly use Linux DRM/DRI to output the Kodi "window". Intel VAAPI is used as hardware acceleration. For NVIDIA or ATI graphic cards you might need to install the corresponding libva-*-driver packages during build as well During build the advancedsettings.xml file is injected to auto-start the Kodi built-in webserver.

Download the container

The container can also be found on docker hub:

Run

Using docker-compose:

docker-compose up -d

Using docker run:

To run the container, you need to map the corresponding input and output devices as well:

docker run -d --device="/dev/input" --device="/dev/snd" --device=/dev/dri --group-add video -v /etc/localtime:/etc/localtime:ro -p 8080:8080 -p 9777:9777/udp nordewal/kodi-gbm

UDEV rule

Start kodi when TV is powered on. Stop is done using shutdown timer of kodi.

# Triggered when HDMI/TV is powered on/off

KERNELS=="card0", SUBSYSTEM=="drm", ACTION=="change", RUN+="/usr/bin/sudo -u joschi /usr/local/bin/docker-compose -f /home/joschi/home-services/kodi/docker-compose.yaml up -d"

Build

To build the container, simply run:

docker build .

About

Kodi GUI without X11 in a docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 75.7%
  • Shell 24.3%