Kodi in Docker
235
https://github.com/superdanio/kodocker
The host needs X11 graphical environment and pulse server running. Everything will be shared through the device, sockets and mounted directories as shown below.
Current version only works with Intel gpu drivers. (I may release versions for other chipsets in the future if needed)
You need to expose /dev/dri in order to access/share the direct rendering from the host.
/dev/driYou need to expose /dev/snd and pulse socket and cookie, in order to access/share the sound server from the host.
/dev/snd~/.config/pulse/cookie${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/nativePULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native/var/run/dbus:/var/run/dbus/tmp/.X11-unix:/tmp/.X11-unixDISPLAY=":0"Mount kodi data in order to persist its config.
<anywhere>:/root/.kodidocker run -it --device /dev/snd \
--device /dev/dri \
-v /var/run/dbus:/var/run/dbus \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v ${XDG_RUNTIME_DIR}/pulse/native:${XDG_RUNTIME_DIR}/pulse/native \
-v ~/.config/pulse/cookie:/root/.config/pulse/cookie \
-v ~/kodi:/root/.kodi \
-e DISPLAY=":0" \
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
superdanio/kodocker:latest
services:
kodi:
image: superdanio/kodocker:latest
container_name: kodi
devices:
- /dev/dri
- /dev/snd
environment:
- DISPLAY=":0"
- PULSE_SERVER=unix:/run/user/1000/pulse/native
volumes:
- /var/run/dbus:/var/run/dbus
- /tmp/.X11-unix:/tmp/.X11-unix
- /run/user/1000/pulse/native:/run/user/1000/pulse/native
- ~/.config/pulse/cookie:/root/.config/pulse/cookie
- /tmp/data:/root/.kodi
Content type
Image
Digest
sha256:fd8953d15…
Size
184.9 MB
Last updated
over 1 year ago
docker pull superdanio/kodocker:20.5