
!GitHub release !Docker Pulls
A minimal docker container for running easyepg either on demand or permanently with built-in cronjob
This section is not for users with a GUI interface for docker on a NAS system like Synology, UnRaid or OpenMediaVault (see here for details) but for people having a dedicated host running TVheadend directly but wanting to run easyepg as docker on this host.
You will need to have docker installed on your system and the user you want to run it needs to be in the docker group.
Switch to the user you want to run the container with and issue the following command to get everything up and running
sh -c "$(curl -s -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/dlueth/easyepg.minimal/master/init)"
Note: The image is a multi-arch build providing variants for amd64, arm32v7 and arm64v8 - the correct variant for your architecture shouldTM be pulled automatically.
Note: If the init-script successfully detects a valid
xmltv.sockit will default to "yes" and provide the correct path automatically. Otherwise it will default to "no".
Switch to the user you want to run the container with and start the admin container and enter it via
docker start easyepg.admin docker exec -ti -u easyepg -w /easyepg easyepg.admin /bin/bash ./epg.sh
to start easyepg's setup and configure it. When your setup is finished return to the shell and issue exit to leave the container followed by docker stop easyepg.admin to stop it.
Note: If you did run the init-script as root user the container will not have an
easyepguser and you will have remove the-u easyepgfrom the line above. I do not recommend this for security though.
Variant A: via Cronjob in the container
Simply run the following command while logged in as the desired user
docker start easyepg.cron
There already is a crontab in the container that will run easyepg at 2:00am every night.
Variant B: via Cronjob on the host
Note: Skip this section if you decided to go with Variant A (e.g. you are running the container on a NAS)
Simply run the following command while logged in as the desired user
crontab -e
Append the following line to the file that should have been opened
0 2 * * * docker start easyepg.run
If you did not set a path to xmltv.sock during installation you might need the following two lines in addition.
0 4 * * * cat ~/easyepg/xml/[your file].xml | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock 10 4 * * * cat ~/easyepg/xml/[your file].xml | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
Replace [your file] with the filename of your generated XML.
Save and exit the file and you are done!
To learn how to manually start the container or about available parameters (you might need for your GUI used) see the following example:
docker run \ -d \ -e MODE="admin" \ -e USER_ID="1099" \ -e GROUP_ID="1099" \ -e TIMEZONE="Europe/Berlin" \ -e FREQUENCY="0 2 * * *" \ -e UPDATE="yes" \ -e REPO="sunsettrack4" \ -e BRANCH="master" \ -v {EASYEPG_STORAGE}:/easyepg \ -v {XML_STORAGE}:/easyepg/xml \ -v {XMLTV_SOCKET}:/xmltv.sock \ --name=easyepg \ --restart unless-stopped \ --tmpfs /tmp \ --tmpfs /var/log \ qoopido/easyepg.minimal:latest
The available parameters in detail:
| Parameter | Optional | Values/Type | Default | Description |
|---|---|---|---|---|
MODE | yes | run, admin, cron | run | Mode to run the container in |
USER_ID | yes | [integer] | 1099 | UID to run easyepg as |
GROUP_ID | yes | [integer] | 1099 | GID to run easyepg as |
TIMEZONE | yes | [string] | Europe/Berlin | Timezone for the container |
FREQUENCY | yes | [string] | 0 2 * * * | Cron frequency (when run in MODE='cron') |
UPDATE | yes | yes, no | yes | Flag whether to update easyepg on container start |
REPO | yes | sunsettrack4, DeBaschdi | sunsettrack4 | The repo to update/install easyepg from |
BRANCH | yes | [string] | master | The branch to update/install easyepg from |
Frequently used volumes:
| Volume | Optional | Description |
|---|---|---|
EASYEPG_STORAGE | no | The directory to persist easyepg to |
XML_STORAGE | yes | The directory to store the finished XML files in |
XMLTV_SOCKET | yes | The socket to automatically write finished XMLs to |
When passing volumes please replace the name including the surrounding curly brackets with existing absolute paths with correct permissions.
If you decide to remove XML_STORAGE the finished XML files can be found in the xml subdirectory of EASYEPG_STORAGE instead.
Note:
XML_STORAGEcan, e.g., be used to directly write finished XMLs into the directory you pass into a separately running TVheadend docker container.
┌───────────── minute (0 - 59) │ ┌───────────── hour (0 - 23) │ │ ┌───────────── day of month (1 - 31) │ │ │ ┌───────────── month (1 - 12) │ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday; │ │ │ │ │ 7 is also Sunday on some systems) │ │ │ │ │ │ │ │ │ │ * * * * * /command/to/execute
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务