From f5740bc7c3631afb5a7d1718f472f1beb2a9ce2a Mon Sep 17 00:00:00 2001 From: gotofoo Date: Sun, 5 Mar 2017 00:09:26 +0100 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 20587eb..f7ef4a5 100644 --- a/README.md +++ b/README.md @@ -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 ```