kodi-headless

matthuisman/kodi-headless Docker Image

Docker容器中的无头Kodi媒体中心,适用于无图形界面环境运行媒体中心功能。

28 次收藏下载次数: 0状态:社区镜像维护者:matthuisman仓库类型:镜像最近更新:
下载命令
点击查看

matthuisman/kodi-headless

A headless install of kodi in a docker container. Commonly used with MySQL Kodi setup to allow library updates via web interface.

https://hub.docker.com/r/matthuisman/kodi-headless

Usage

docker run -d \
--name=kodi-headless \
--restart unless-stopped \
-v <path to data>:/config/.kodi \
-e PUID=<uid> \
-e PGID=<gid> \
-e TZ=<timezone> \
-p 8080:8080 \
-p 9090:9090 \
-p 9777:9777/udp \
matthuisman/kodi-headless:Matrix

Parameters

  • -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 https://github.com/matthuisman/docker-kodi-headless/blob/master/docker-compose.yml file which will setup a SQL db and set Kodi up to use it.

Tags

  • Leia
  • Matrix
  • Nexus
  • Omega
  • Piers

Platforms

  • x86_64 / amd64
  • armv7
  • armv8 / arm64

Docker will automatically pull the correct version for your platform

Install add-ons

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 "<addon_id>" "<addon_id>" "<addon_id>"

eg. docker exec kodi-headless install_addon "metadata.tvshows.thetvdb.com.v4.python" "another.addon.id"

Python Versions

  • Leia - Python 2.7.17
  • Matrix - Python 3.6.5
  • Nexus - Python 3.10.4
  • Omega - Python 3.10.4
  • Piers- Python 3.10.12

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 PUID=1001 and 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

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.

Info

  • 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

Fast Scanning

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

<pathsubstitution>
  <substitute>
    <from>smb://192.168.20.3/sharedfolders/pool/</from>
    <to>/media/</to>
  </substitute>
</pathsubstitution>

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

Known Issues

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

Credits

  • https://github.com/linuxserver/docker-kodi-headless/ (original headless container)

Support Me

[***]

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 kodi-headless 镜像标签

docker pull docker.xuanyuan.run/matthuisman/kodi-headless:<标签>

DockerHub 原生拉取命令

docker pull matthuisman/kodi-headless:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告