summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPetr Ruzicka <petr.ruzicka@gmail.com>2017-11-23 17:11:50 +0100
committerPetr Ruzicka <petr.ruzicka@gmail.com>2017-11-23 17:11:50 +0100
commitd64fbe5fddbc349e642c40a26cd98f0996fc4ef7 (patch)
treec044eb691a3a0d1442e4a390c080e8ad385085d2 /doc
parent0c67b32c5d7933d46f7fad1624fa87ab6523caa0 (diff)
downloadxmr-stak-d64fbe5fddbc349e642c40a26cd98f0996fc4ef7.zip
xmr-stak-d64fbe5fddbc349e642c40a26cd98f0996fc4ef7.tar.gz
Adding Dockerfile and fixing build_xmr-stak_docker script
Diffstat (limited to 'doc')
-rw-r--r--doc/usage.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/usage.md b/doc/usage.md
index bb35769..9cbbdd4 100644
--- a/doc/usage.md
+++ b/doc/usage.md
@@ -49,6 +49,22 @@ The Following options temporary overwrites the config file settings:
-p, --pass PASSWD pool password, in the most cases x or empty ""
```
+## Docker image usage
+
+You can run the Docker image the following way:
+
+```
+docker run --rm -it -u $(id -u):$(id -g) --name fireice-uk/xmr-stak -v "$PWD":/mnt xmr-stak
+docker stop xmr-stak
+docker run --rm -it -u $(id -u):$(id -g) --name fireice-uk/xmr-stak -v "$PWD":/mnt xmr-stak --config config.txt
+```
+
+Debug the docker image by getting inside:
+
+```
+docker run --entrypoint=/bin/bash --rm -it -u $(id -u):$(id -g) --name fireice-uk/xmr-stak -v "$PWD":/mnt xmr-stak
+```
+
## HTML and JSON API report configuraton
To configure the reports shown on the [README](README.md) side you need to edit the httpd_port variable. Then enable wifi on your phone and navigate to [miner ip address]:[httpd_port] in your phone browser. If you want to use the data in scripts, you can get the JSON version of the data at url [miner ip address]:[httpd_port]/api.json
OpenPOWER on IntegriCloud