Docker JDownloader 2 headless image with automatic updates.
MIT License
Docker JDownloader 2 headless image with automatic updates.
There is no embedded graphical interface, you should manage your downloads through the official JDownloader web interface here : https://my.jdownloader.org.
Dockerhub repository : https://hub.docker.com/r/antlafarge/jdownloader. Github repository : https://github.com/antlafarge/jdownloader. You can report issues in the github issues. You can send feedback and discuss the project in the github discussions.
arch \ tags |
latest ubuntu ubuntu-openjdk21 openjdk21
|
alpine alpine-openjdk21
|
---|---|---|
linux/amd64 | OK | OK |
linux/arm/v7 | OK | NA |
linux/arm64/v8 | OK | OK |
linux/ppc64le | Need feedback | Need feedback |
linux/riscv64 | NA | Need feedback |
linux/s390x | Need feedback | Need feedback |
openjdk17
ubuntu-openjdk17
alpine-openjdk17
openjdk8
ubuntu-openjdk8
alpine-openjdk8
(use this tag for architectures linux/386 and linux/arm/v6)Name | Type | Description | Optional | Default |
---|---|---|---|---|
<TAG> |
Tag | Docker hub tag. | Optional | latest |
<CONTAINER-NAME> |
Name | Container name. | Recommended | Random |
<RESTART> |
Restart | Container restart policy.Use on-failure to have a correct behavior of Restart , Close and Shutdown buttons in the JDownloader settings.
|
Recommended | no |
<UID> |
User | Owner user ID of the files and directories created.Use the command id -u in your shell to get your current user id.
|
Recommended |
0 (root) |
<GID> |
User | Owner group ID of the files and directories created.Use the command id -g in your shell to get your current groud id.
|
Recommended |
0 (root) |
<DOWNLOADS-PATH> |
Volume | Directory where your downloads will be stored on your host machine.If you use the user parameter, check the permissions of the directories you mount as volumes.
|
REQUIRED | |
<CONFIG-PATH> |
Volume | Directory where the JDownloader settings files will be stored on your host machine.If you use the user parameter, check the permissions of the directories you mount as volumes.
|
Recommended | In container |
<LOGS-PATH> |
Volume | Directory where the JDownloader log files will be stored on your host machine.If you use the user parameter, check the permissions of the directories you mount as volumes.
|
Not recommended | In container |
<JD-EMAIL-FILE> |
Secret | The path to the docker secret file where your myJDownloader e-mail is saved. | REQUIRED | |
<JD-PASSWORD-FILE> |
Secret | The path to the docker secret file where your myJDownloader password is saved. | REQUIRED | |
<JD-DEVICENAME-FILE> |
Secret | The path to the docker secret file where your myJDownloader device name is saved. | Optional | (hostname) |
<JAVA-OPTIONS> |
Env | Java options.Use -Xms128m -Xmx1g to change initial and max Java heap size memory.
|
Optional | Empty |
<UMASK> |
Env | Change the umask. | Optional | No change |
<JD-DEVICENAME> |
Env | Device name in your myJDownloader web interface. | Optional | Hostname |
<JD-EMAIL> |
Env | Your myJDownloader e-mail.I recommend to use the docker secrets (cf. <JD-EMAIL-FILE> ). |
Not recommended | |
<JD-PASSWORD> |
Env | Your myJDownloader password.I recommend to use the docker secrets (cf. <JD-PASSWORD-FILE> ). |
Not recommended | |
<LOG-FILE> |
Env | Write JDownloader logs from java command in a file.You should use the volume parameter <LOGS-PATH> to access these log files from the host machine.Useful if you want to investigate any issues with JDownloader.Example : "/jdownloader/logs/jd.docker.log" . |
Not recommended | /dev/null |
<PORT> |
Port | Network port used for Direct connection mode. | Optional | Not exposed |
Note : Parameters indented twice are optional.
Example :
user
parameter and check the access permissions of the directories you mount as volumes
mkdir /path/to/jdownloader/downloads/
sudo chown -R 1000:100 /path/to/jdownloader/downloads/
id -u
id -g
100
as GID (users
group), because every users should be in this group, and it will be easier to manage multi-users privileges.sudo chmod -R 770 /path/to/jdownloader/downloads/
sudo chmod -R 770 /path/to/jdownloader/cfg/
sudo chmod -R 770 /path/to/jdownloader/secrets/
echo '[email protected]' > /path/to/jdownloader/secrets/JD_EMAIL.txt
echo 'MyGreatPassword' > /path/to/jdownloader/secrets/JD_PASSWORD.txt
echo 'JD-DOCKER' > /path/to/jdownloader/secrets/JD_DEVICENAME.txt
docker logs --follow --tail 100 jdownloader
(CTRL + C
to quit)JDownloader will update itself automatically when it is idle (every 12 hours), so you have nothing to do.
To disable the automatic upates, go to your JD instance on my.jdownloader.org, and go to Settings
/ Event Scripter
and switch from Enabled
to Disabled
.
docker compose pull jdownloader
docker compose up --force-recreate -d jdownloader
docker image prune -f
docker pull antlafarge/jdownloader:latest
docker rm -f jdownloader
docker image prune -f
docker run ...
If you used the docker secrets, put the raw password in the secret file without escaping any character.
If you want to use environment variables, modify your docker run command or docker-compose.yml file :
!
) in your password and you use a bash shell, this special character corresponds to commands history substitution. You might need to disable it by using the command set +H
in your bash shell."
), escape it with backslashes (\
) in the docker run command or docker-compose.yml file. "JD_PASSWORD=My\"Great`Password"
`
) with backslashes (\
). "JD_PASSWORD=My\"Great\`Password"
If you want to put your password manually in the settings file :
<JD_PASSWORD>
(for disabling password replacement on container start). "JD_PASSWORD="
<CONFIG-PATH>
volume to access the JDownloader settings files.org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json
."password":"MyGreatPassword",
"
), escape it with backslashes (\
). "password":"My\"Great`Password",
docker restart jdownloader
Check the user you use to run the container (with user
parameter) can read and write the directories you created and you mounted as volumes.
Read carefully the Setup guide and follow the steps.
Or run the container as root (remove user
parameter).
If you run the image on an armhf host (arm/v7
), you may encounter many command errors (wait
, sleep
, curl
, date
)
This may be resolved by upgrading the libseccomp2
library (docker dependency).
First you should try to upgrade your system by using the usual method.
If this upgrade didn't resolve the problem, add the backports repo for debian buster and update :
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC 648ACFD622F3D138
echo "deb http://deb.debian.org/debian buster-backports main" | sudo tee -a /etc/apt/sources.list.d/buster-backports.list
sudo apt update
sudo apt install -t buster-backports libseccomp2
If many internal commands fail, your container may lack some privileges and you can try the --privileged flag.
You can report issues in the github issues. You can send feedback and discuss the project in the github discussions.
Note: To access the JDownloader log files, you have to set the <LOGS-PATH>
volume.