https://github.com/plusminus0/headless-jd2-docker
Headless JDownloader 2 Docker Container
https://github.com/plusminus0/headless-jd2-docker
Last synced: about 1 year ago
JSON representation
Headless JDownloader 2 Docker Container
- Host: GitHub
- URL: https://github.com/plusminus0/headless-jd2-docker
- Owner: PlusMinus0
- Created: 2015-08-17T09:13:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T14:59:09.000Z (over 4 years ago)
- Last Synced: 2025-03-29T08:12:32.266Z (about 1 year ago)
- Language: Dockerfile
- Size: 1.03 MB
- Stars: 32
- Watchers: 4
- Forks: 39
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.com/PlusMinus0/headless-jd2-docker)
# Supported tags
* [`latest`, `debian`, `v3.0-debian` (debian.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/master/debian.Dockerfile)
* [`alpine`, `v3.0-alpine` (alpine.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/master/alpine.Dockerfile)
* [`dev-debian` (debian.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/dev/debian.Dockerfile)
* [`dev-alpine` (alpine.Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/dev/alpine.Dockerfile)
* [`v2.1` (Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/v2.1/Dockerfile)
* [`v2.0` (Dockerfile)](https://github.com/PlusMinus0/headless-jd2-docker/blob/v2.0/Dockerfile)
# Running the container
0. Become root if your user is not part of the docker group:
```
sudo su
```
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:/opt/JDownloader/cfg \
-v /home/user/Downloads:/opt/JDownloader/Downloads \
plusminus/jdownloader2-headless
```
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`/org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json` as in
```
{ "email" : "my@mail.com", "password" : "my_secret_password" }
```
# Optional environment variables
Environment Variable | Description
---------------------|------------
EMAIL | The MyJDownloader account e-mail. Is written automatically to config-file, if set.
PASSWORD | The MyJDownloader account password. Is written automatically to config-file, if set.
UID | Specifies the UID the daemon should run as. All created files will be owned by this UID. Defaults to 1000.
GID | Specifies the GID for all created files. This only works in combination with the UID. Defaults to 100 for users.
Not setting `UID` / `GID` will default to `1000`:`100`.