Update README.md

This commit is contained in:
gotofoo 2017-03-05 00:06:40 +01:00 committed by GitHub
parent 4a8746ab8a
commit aa1db2e8e5

View file

@ -3,11 +3,11 @@ Headless JDownloader 2 Docker Container
## Running the container
0. Become root:
`sudo su`
```
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,14 +16,17 @@ Headless JDownloader 2 Docker Container
```
3. Wait a minute for the container to initialize
4. Stop the container:
`docker stop jd2`
```
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" }`
```
{ "password" : "mypasswort", "email" : "email@home.org" }
```
6. Start the container:
   `docker start jd2`
   ```
docker start jd2
```
## Optional environment variables
|Environment Variable|Description|