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)

编辑推荐精选

TRAE编程

TRAE编程

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

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

热门AI工具生产力协作转型TraeAI IDE
博思AIPPT

博思AIPPT

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

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

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

潮际好麦

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

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

iTerms

iTerms

企业专属的AI法律顾问

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

SimilarWeb流量提升

SimilarWeb流量提升

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

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

Sora2视频免费生成

Sora2视频免费生成

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

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

Transly

Transly

实时语音翻译/同声传译工具

Transly是一个多场景的AI大语言模型驱动的同声传译、专业翻译助手,它拥有超精准的音频识别翻译能力,几乎零延迟的使用体验和支持多国语言可以让你带它走遍全球,无论你是留学生、商务人士、韩剧美剧爱好者,还是出国游玩、多国会议、跨国追星等等,都可以满足你所有需要同传的场景需求,线上线下通用,扫除语言障碍,让全世界的语言交流不再有国界。

讯飞绘文

讯飞绘文

选题、配图、成文,一站式创作,让内容运营更高效

讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。

AI助手热门AI工具AI创作AI辅助写作讯飞绘文内容运营个性化文章多平台分发
商汤小浣熊

商汤小浣熊

最强AI数据分析助手

小浣熊家族Raccoon,您的AI智能助手,致力于通过先进的人工智能技术,为用户提供高效、便捷的智能服务。无论是日常咨询还是专业问题解答,小浣熊都能以快速、准确的响应满足您的需求,让您的生活更加智能便捷。

imini AI

imini AI

像人一样思考的AI智能体

imini 是一款超级AI智能体,能根据人类指令,自主思考、自主完成、并且交付结果的AI智能体。

下拉加载更多