summaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorNicolargo <nicolas@nicolargo.com>2016-05-27 13:28:51 +0200
committerNicolargo <nicolas@nicolargo.com>2016-05-27 13:28:51 +0200
commit42d45c290436ee6ef51df60d5a7287c41b0c84c2 (patch)
tree2bb7faa5c2141c42d1e2ba33b44e7fc70ed442d4 /README.rst
parent6329ae65886a5e2a72add9d42917ce49791bf107 (diff)
Expose glances config file when running in docker #868
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index 9f6b0e1f..3d34ab10 100644
--- a/README.rst
+++ b/README.rst
@@ -144,6 +144,22 @@ Run the container in console mode:
docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances
+Additionally, If you want to use your own glances.conf file, you can create your
+own Dockerfile:
+
+.. code-block:: console
+
+ FROM nicolargo/glances
+ COPY glances.conf /glances/conf/glances.conf
+ CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT
+
+Alternatively, you can specify something along the same lines with docker run options:
+
+.. code-block:: console
+
+ docker run -v ./glances.conf:/glances/conf/glances.conf -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances
+
+Where ./glances.conf is a local directory containing your glances.conf file.
GNU/Linux
---------