summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe SEGATORI <tigitz@users.noreply.github.com>2016-07-16 17:03:07 +0200
committerGitHub <noreply@github.com>2016-07-16 17:03:07 +0200
commite99c7992eb777feaf35d9691b7e066b696f93ab1 (patch)
treef5d4cf5a661aec24d5c9801f9b2ba7fcd642a257
parentd5d85325dd5a331157be83773c78a3b325f13792 (diff)
add docker container web server mode example in readme
-rw-r--r--README.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index becbd586..6d209b4f 100644
--- a/README.rst
+++ b/README.rst
@@ -148,6 +148,12 @@ Run the container in console mode:
.. code-block:: console
docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances
+
+Run the container in Web server mode (notice the GLANCES_OPT environment variable setting parameters for the glances startup command) :
+
+.. code-block:: console
+
+ docker run -d -p 61208:61208 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host docker.io/nicolargo/glances
Additionally, If you want to use your own glances.conf file, you can create your
own Dockerfile: