The LinuxServer.io team brings you another container release featuring easy user mapping and community support. Find us for support at:
- IRC on freenode at
- Podcast covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
A headless install of kodi in a docker container, most useful for a mysql setup of kodi to allow library updates to be sent without the need for a player system to be permanently on.
docker create --name=kodi-headless \ -v <path to data>:/config/.kodi \ -e PGID=<gid> -e PUID=<uid> \ -e TZ=<timezone> \ -p 8080:8080 -p 9777:9777/udp \ linuxserver/kodi-headless
You can choose between ,using tags, various main versions of kodi.
Add one of the tags, if required, to the linuxserver/kodi-headless line of the run/create command in the following format, linuxserver/kodi-headless:Krypton
- Krypton : current default branch.
-p 8080- webui port
-p 9777/udp- esall interface port
-v /config/.kodi- path for kodi configuration files
-e PGIDfor GroupID - see below for explanation
-e PUIDfor UserID - see below for explanation
-e TZ- for timezone information eg Europe/London, etc
It is based on ubuntu xenial with s6 overlay, for shell access whilst the container is running do
docker exec -it kodi-headless /bin/bash.
User / Group Identifiers
Sometimes when using data volumes (
-v flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user
PUID and group
PGID. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
In this instance
PGID=1001. To find yours use
id user as below:
$ id <dockeruser> uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
Setting up the application
Mysql/mariadb settings are entered by editing the file advancedsettings.xml which is found in the userdata folder of your /config/.kodi mapping. Many other settings are within this file also.
The default user/password for the web interface and for apps like couchpotato etc to send updates is kodi/kodi.
If you intend to use this kodi instance to perform library tasks other than merely updating, eg. library cleaning etc, it is important to copy over the sources.xml from the host machine that you performed the initial library scan on to the userdata folder of this instance, otherwise database loss can and most likely will occur.
- Shell access whilst the container is running:
docker exec -it kodi-headless /bin/bash
- To monitor the logs of the container in realtime:
docker logs -f kodi-headless
Various members of the xbmc/kodi community for patches and advice.
- 25.05.17: Bump Krypton to 17.3.
- 23.05.17: Bump Krypton to 17.2.
- 23.04.17: Refine cmake, use cmake ppa and take out uneeded bootstrap line.
- 22.02.17: Switch to using cmake build system.
- 22.02.17: Bump Krypton to 17.1.
- 22.02.17: Change default webui user/pw to kodi/kodi.
- 05.02.17: Move Krypton to default branch.
- 20.09.16: Add kodi-send and fix var cache samba permissions.
- 10.09.16: Add layer badge to README..
- 02.09.16: Rebase to alpine linux.
- 13.03.16: Make kodi 16 (jarvis) default installed version.
- 21.08.15: Initial Release.