Update README.md

This commit is contained in:
gotofoo 2017-03-05 00:09:26 +01:00 committed by GitHub
parent aa1db2e8e5
commit f5740bc7c3

View file

@ -3,11 +3,13 @@ Headless JDownloader 2 Docker Container
## Running the container
0. Become root:
```
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 \
-v /config/jd2:/opt/JDownloader/cfg \
@ -16,15 +18,18 @@ Headless JDownloader 2 Docker Container
```
3. Wait a minute for the container to initialize
4. Stop the container:
```
docker stop jd2
```
5. On your host, enter your credentials (in quotes) to the file `org.jdownloader.api.myjdownloader.MyJDownloaderSettings.json` as in:
```
{ "password" : "mypasswort", "email" : "email@home.org" }
```
6. Start the container:
   ```
```
docker start jd2
```