docker-jdownloader

docker-jdownloader

Docker化JDownloader 2实现简易部署和管理

此Docker镜像简化了JDownloader 2的安装和控制流程,摒弃了繁琐的VNC会话和图形界面。通过MyJDownloader接口,可轻松管理下载任务。镜像支持Docker、Docker Compose和Kubernetes等多种部署方式,并提供自定义下载目录、用户权限设置和直接连接模式等灵活配置选项,大幅提升了使用体验。

JDownloader 2DockerMyJDownloader容器化下载工具Github开源项目

[!CAUTION] As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support my work.

[!NOTE] (This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)

logo

JDownloader 2 - Docker Image

latest release Docker Pulls Docker stars PayPal donation Buy me a coffee Buy me a coffee

Headline

This image allows you to have JDownloader 2 easily installed and controlled via MyJDownloader, thanks to Docker. No cluncky and rusty VNC sessions here! No graphical interface - No problem!

Installation

Here are some examples to get started with the creation of this container. Please note that this package is also hosted on Github Container Registry, just add ghcr.io/ before the image name (docker pull ghcr.io/jaymoulin/jdownloader instead of jaymoulin/jdownloader)

Docker

docker run -d --init --restart=always -v </path/to/downloads>:/opt/JDownloader/Downloads -v </path/to/appdata/config>:/opt/JDownloader/app/cfg --name jdownloader -u $(id -u) -p 3129:3129 -e MYJD_USER=email@email.com -e MYJD_PASSWORD=bar -e MYJD_DEVICE_NAME=goofy jaymoulin/jdownloader

Docker Compose

services: jdownloader: image: jaymoulin/jdownloader container_name: jdownloader restart: always user: 1001:100 volumes: - </path/to/appdata/config>:/opt/JDownloader/app/cfg - </path/to/downloads>:/opt/JDownloader/Downloads - </path/to/appdata/logs>:/opt/JDownloader/app/logs #optional - </path/to/appdata/extensions>:/opt/JDownloader/app/extensions #optional - /etc/localtime:/etc/localtime:ro #optional environment: FILE_MYJD_USER: myjd-user #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) FILE_MYJD_PASSWORD: myjd-password #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) MYJD_USER: email@email.com #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) MYJD_PASSWORD: bar #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) MYJD_DEVICE_NAME: goofy #optional XDG_DOWNLOAD_DIR: /opt/JDownloader/Downloads #optional ports: - 3129:3129 secrets: - myjd-user #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) - myjd-password #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) secrets: myjd-user: #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) file: ~/jdownloader/secrets/myjd_user.txt myjd-password: #optional (see [Identify](https://github.com/jaymoulin/docker-jdownloader#identify)) file: ~/jdownloader/secrets/myjd_password.txt

Kubernetes

apiVersion: apps/v1 kind: Deployment metadata: name: jdownloader labels: app: jdownloader spec: replicas: 1 selector: matchLabels: app: jdownloader template: metadata: labels: app: jdownloader spec: containers: - name: jdownloader image: jaymoulin/jdownloader env: - name: MYJD_USER value: "email@email.com" - name: MYJD_PASSWORD valueFrom: secretKeyRef: name: my_jd_secret key: password volumeMounts: - mountPath: /opt/JDownloader/app name: exec - mountPath: /opt/JDownloader/app/cfg name: cfg - mountPath: /opt/JDownloader/Downloads name: downloads - mountPath: /opt/JDownloader/app/extensions name: extensions volumes: - name: exec emptyDir: {} - name: cfg hostPath: path: /path/to/jd/cfg type: Directory - name: downloads hostPath: path: /path/to/downloads type: Directory - name: extensions hostPath: path: /path/to/extensions type: Directory

[!CAUTION] Note for RPI Zero You may need to specify that you want the arm32v6 image (e.g. docker run -d --platform=linux/arm/v6 jaymoulin/jdownloader) because rpi zero identifies itself as armhf which is incorrect (https://github.com/moby/moby/issues/41017) (https://github.com/moby/moby/issues/34875).

Configuration

You can set many parameters when you configure this container, but you must specify your MyJDownloader login/password to connect to your container.

Configuration values

ParameterFunction
-v /opt/JDownloader/app/cfgConfig file folder, saves your configuration on the host
-v /opt/JDownloader/app/logsContainer logs folder, specify it only if you wan to keep logs on the host
-v /opt/JDownloader/app/extensionsExtensions folder, specify it only if you wan to install extensions and keep it on the host
-v /opt/JDownloader/DownloadsDownloads folder (where you put your download mountpoint)
-u <UID>:<GID>Add user identifiers to run the container with user priviledges. To obtain such values, run on your host id yourusername, additional information can be found in Docker documentation
-p 3129:3129This Network port is required for Direct Connection mode, more information in this section

Environment Variables

ParameterFunction
FILE_MYJD_USER=myjd-userThe docker secret of your MyJDownloader user
FILE_MYJD_PASSWORD=myjd-passwordThe docker secret of your MyJDownloader password
MYJD_USER=email@email.comYour MyJDownloader user
MYJD_PASSWORD=fooYour MyJDownloader password
MYJD_DEVICE_NAME=goofyThe device name that will appear on MyJdownloader portal
XDG_DOWNLOAD_DIR=/opt/JDownloader/DownloadsIf you use this variable, set it as per the downloads folder volume!
UMASK="0002"Defines specific rights for your downloaded files (default: undefined) - Must respect octal form (begins with 0 followed by three numbers between 0 and 7 included) (cf. https://en.wikipedia.org/wiki/Umask)

Identify

There are 3 possibilities to give login password for MyJDownloader:

  • Declare FILE_MYJD_USER and FILE_MY_JD_PASSWORD which is used with the principle of docker secret : https://docs.docker.com/engine/swarm/secrets/#use-secrets-in-compose. This is the most docker way.
  • Declare MYJD_USER and MYJD_PASSWORD values which only create environment variable
  • If haven't set FILE_MYJD_USER, FILE_MY_JD_PASSWORD, MYJD_USER and MYJD_PASSWORD values, you can still configure an account by running (Recommended method because it is the most secure but not fully automatic in the docker-compose.)
docker exec jdownloader configure email@email.com password

Other options can be changed on your MyJDownloader account : https://my.jdownloader.org/index.html#dashboard.

Appendixes

Direct Connection Mode

Direct Connection mode (or Direct Connections) improves the use of this container via MyJDownloader GUI and is strongly recommended at least in your LAN.

By enabling this mode, the communication happens directly between the client and the JDownloader server via port 3129 (by default), instead of being routed trough MyJDownloader servers. This enables the GUI to respond much faster with information reliably updating over time. In this mode, MyJDownloader server still handles service related tasks, like the session authentication and notifications.

To enable Direct Connection mode from internet, you need to open and forward port 3129 adjusting your router configuration. Please find more information in this JDownloader's article

DNS Rebind Warning

If you are running a router like Fritz!Box, Asus, OpenWRT, DDWRT, pfSense or any other 3rd party advanced routers you may have DNS Rebind Protection enabled: Direct Connections will not work, you will have to explicitly whitelist mydns.jdownloader.org. The procedure is different for every router, here are some tips:

  • Asus Merlin: Follow this procedure to enable custom scripts and edit the dnsmasq file, then add the line rebind-domain-ok=/mydns.jdownloader.org/
  • FreshTomato: In 'Advanced->DHCP/DNS/Dnsmasq Custom configuration' add rebind-domain-ok=mydns.jdownloader.org
  • Fritz!Box: KB Article from JDownloader
  • OpenWRT: browse to Network>DHCP and DNS>General Settings and add mydns.jdownloader.org to Domain Whitelist
  • pfSense: more information here

Direct Connection using a Bridged Network

To get Direct Connection when using a bridged newtwork, please follow these steps:

  • Expose 3129 port when creating the container (-p 3129:3129 parameter)
  • When JDownloader is running, navigate to Settings > Advanced Settings > Search for "myjdownloader" > Find MyJDownloaderSettings: Custom Device IPs and enter your host LAN IP using this formatting ["192.168.1.10"]. If you need to specify more IPs use ["192.168.1.10","10.10.10.10"]
  • Set MyJDownloaderSettings: Manual Local Port to 3129
  • Set MyJDownloaderSettings: Direct Connect Mode to Allow lan/wan connections with manual port forwarding
  • Restart JDownloader, connections will now be direct

Debugging

You can put a file called jdownloader-block.txt file in your Download folder to pause the container start. This will allow to connect to the container with a shell to debug. (docker exec -it jdownloader sh)

编辑推荐精选

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

Refly.AI

Refly.AI

最适合小白的AI自动化工作流平台

无需编码,轻松生成可复用、可变现的AI自动化工作流

酷表ChatExcel

酷表ChatExcel

大模型驱动的Excel数据处理工具

基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。

AI工具酷表ChatExcelAI智能客服AI营销产品使用教程
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
AIWritePaper论文写作

AIWritePaper论文写作

AI论文写作指导平台

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

AI辅助写作AI工具AI论文工具论文写作智能生成大纲数据安全AI助手热门
博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

AI办公办公工具AI工具博思AIPPTAI生成PPT智能排版海量精品模板AI创作热门
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

iTerms

iTerms

企业专属的AI法律顾问

iTerms是法大大集团旗下法律子品牌,基于最先进的大语言模型(LLM)、专业的法律知识库和强大的智能体架构,帮助企业扫清合规障碍,筑牢风控防线,成为您企业专属的AI法律顾问。

SimilarWeb流量提升

SimilarWeb流量提升

稳定高效的流量提升解决方案,助力品牌曝光

稳定高效的流量提升解决方案,助力品牌曝光

Sora2视频免费生成

Sora2视频免费生成

最新版Sora2模型免费使用,一键生成无水印视频

最新版Sora2模型免费使用,一键生成无水印视频

下拉加载更多