- Saved searches
- Use saved searches to filter your results more quickly
- matthuisman/docker-kodi-headless
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
- Saved searches
- Use saved searches to filter your results more quickly
- License
- linuxserver/docker-kodi-headless
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- License
- Celedhrim/docker-kodi-server
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A headless install of kodi in a docker container
matthuisman/docker-kodi-headless
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
A headless install of kodi in a docker container. Commonly used with MySQL Kodi setup to allow library updates via web interface.
docker run -d \ --name=kodi-headless \ --restart unless-stopped \ -v :/config/.kodi \ -e PUID= \ -e PGID= \ -e TZ= \ -p 8080:8080 \ -p 9090:9090 \ -p 9777:9777/udp \ matthuisman/kodi-headless:Matrix
- -p 8080 — webui port
- -p 9090 — websockets port
- -p 9777/udp — esall interface port
- -v /config/.kodi — path for kodi configuration files
- -e PUID for UserID — see below for explanation
- -e PGID for GroupID — see below for explanation
- -e TZ to set the timezone eg. Europe/London, etc
There is also an example docker-compose.yml file which will setup a SQL db and set Kodi up to use it.
Docker will automatically pull the correct version for your platform
Any add-ons found in your config addons directory will automatically be enabled when Kodi starts.
Simply copy add-ons to the add-ons directory and then restart the docker container.
You can also install add-ons (and all their dependencies) from enabled repositories using the below command
docker exec kodi-headless install_addon "" "" ""
eg. docker exec kodi-headless install_addon «metadata.tvshows.thetvdb.com.v4.python» «another.addon.id»
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 PUID=1001 and PGID=1001 . To find yours use id user as below:
$ id uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
Setting up the application
SQL 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.
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
The below works if your media is stored on the same machine as this docker container and your using smb:// to share that media on the network.
First, mount your host media directory somewhere inside the container so Kodi can see it.
eg. —mount type=bind,source=/sharedfolders/pool,target=/media
Now, the below magic is done in Kodis advancedsettings.xml
smb://192.168.20.3/sharedfolders/pool/ /media/
That’s it. Now instead of always needing to scan over smb://, it will replace that with /media and scan much quicker. When it does find new items, they are correctly stored in the SQL using their smb:// path
If you receive errors like unable to iopause , what(): Operation not permitted , /usr/lib/kodi/kodi-x11 not found then see: https://github.com/sdr-enthusiasts/Buster-Docker-Fixes#the-situation
- 30.06.23: Bump Nexus to 20.2
- 12.03.23: Bump Nexus to 20.1
- 16.01.23: Bump Nexus to 20.0
- 25.12.22: Bump Matrix to 19.5
- 21.12.22: Bump Nexus to 20.0rc2
- 11.12.22: Bump Nexus to 20.0rc1
- 24.11.22: Bump Nexus to 20.0b1
- 10.03.22: Bump Matrix to 19.4
- 29.10.21: Bump Matrix to 19.3
- 10.10.21: Bump Matrix to 19.2
About
A headless install of kodi in a docker container
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
License
linuxserver/docker-kodi-headless
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
This image is deprecated. We will not offer support for this image and it will not be updated. This project is no longer maintained.
The LinuxServer.io team brings you another container release featuring easy user mapping and community support. Find us for support at:
- forum.linuxserver.io
- IRC on freenode at #linuxserver.io
- 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 :/config/.kodi \ -e PGID= -e PUID= \ -e TZ= \ -p 8080:8080 \ -p 9090:9090 \ -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
- -p 8080 — webui port
- -p 9090 — websockets port
- -p 9777/udp — esall interface port
- -v /config/.kodi — path for kodi configuration files
- -e PGID for GroupID — see below for explanation
- -e PUID for UserID — see below for explanation
- -e TZ — for timezone information eg Europe/London, etc
It is based on ubuntu bionic with s6 overlay, for shell access whilst the container is running do docker exec -it kodi-headless /bin/bash .
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 PUID=1001 and PGID=1001 . To find yours use id user as below:
$ id 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.
Rar integration with the Leia branch is now handled by an addon, it is compiled with this build, but you will need to enable it, if required, in the settings section of the webui.
- 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
For inspiration, and most importantly, the headless patches without which none of this would have been possible.
Various other members of the xbmc/kodi community for advice.
- 07.01.20: Bump Leia to 18.5.
- 23.06.19: Bump Leia to 18.4.
- 23.04.19: Bump Leia to 18.2.
- 09.03.19: Build vfs.libarchive and vfs.rar addons.
- 08.03.19: Make Leia default branch, using patched «headless» build.
- 30.01.19: Bump Leia branch to release ppa.
- 03.09.18: Add back libnfs dependency.
- 31.08.18: Rebase to ubuntu bionic, use buildstage and add info about websockets port.
- 04.01.18: Deprecate cpu_core routine lack of scaling.
- 14.12.17: Fix continuation lines.
- 17.11.17: Bump Krypton to 17.6.
- 24.10.17: Bump Krypton to 17.5.
- 22.08.17: Bump Krypton to 17.4.
- 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.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Runs Kodi in headless mode with docker
License
Celedhrim/docker-kodi-server
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Run Kodi using docker as a server
- serves files through the Kodi UPnP Library to your UPnP client/players (such as Kodi or Chromecast).
- Web access every time , or use with some tools like htpc-manager
- Trigger library scan When you want using api or from sickbeard/sickrage/couchpotato/sonarr/radarr/.
If you require web access, make sure to enable this, and set the port to 8089. Because 8080 is default for http proxy , this docker image expose 8089
- You don’t need any display , personnaly I disable all menu and told kodi to start on settings
- As software fake display is use , every graphic change is cpu cost , disable library update progess ( Settings / Media / Library : Hide progress of library updates)
- Only configure scrapers , and set addons on auto update
$ cp -r ~./kodi ~/kodi-server-profile
For the last stable version,
$ docker pull celedhrim/kodi-server
$ docker pull celedhrim/kodi-server:branchname
$ docker run -d --restart="always" --net=host -v /path/to/kodi-server-profile:/usr/share/kodi/portable_data celedhrim/kodi-server
$ docker run -d --restart="always" --net=host -v /path/to/kodi-server-profile:/usr/share/kodi/portable_data celedhrim/kodi-server:branchname
Build the container yourself
$ git clone https://github.com/Celedhrim/docker-kodi-server.git $ cd docker-kodi-server $ git checkout branchname $ docker build --rm=true -t $(whoami)/kodi-server .
Then proceed with the Quick start section.