jdownloader2-headless-docker-ng

March 10, 2024 ยท View on GitHub

Create and publish a Docker image MegaLinter

This is a docker container which creates a headless instance of JDownloader. You can control this JDownloader instance by configuring your MyJDownloader account. This container checks once a week if a new baseimage is available and builds/pushes a new image.

This code is based on this repository: https://github.com/PlusMinus0/headless-jd2-docker

Supported tags

  • latest
  • latest-ffmpeg

Running the container

  1. Create a folder on your host for the configuration files (eg. sudo mkdir /config/jd2)

  2. Run the container:

    docker run -d --name jd2 \
        -e EMAIL=my@mail.com -e PASSWORD=my_secret_password
        -v /config/jd2:/app/cfg \
        -v /home/user/Downloads:/data \
        entepotenz/jdownloader2-headless-docker-ng:latest
    

If you don't want to specify your credentials on the command-line, remove them from the command above (-e EMAIL=... -e PASSWORD=...) and add them manually to the file <config-dir>/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json as in

{ "email" : "my@mail.com", "password" : "my_secret_password" }

Optional environment variables

Environment VariableDescription
EMAILThe MyJDownloader account email. Is written automatically to config-file, if set.
PASSWORDThe MyJDownloader account password. Is written automatically to config-file, if set.
PUIDSpecifies the UID the daemon should run as. All created files will be owned by this UID. Defaults to 1000.
PGIDSpecifies the GID for all created files. This only works in combination with the UID. Defaults to 911 for users.

Not setting PUID / PGID will default to 1000:911.