summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2022-07-15 19:25:53 +0200
committernicolargo <nicolas@nicolargo.com>2022-07-15 19:25:53 +0200
commit0e7fb3052e8674c338a420fba4f30ef72446ff6b (patch)
tree02aa519a42eb2d6f5f886513bcf1e403f4324807
parent2fa8cfa09312aa7fb7677ccfa25aa1af2fb4c3a9 (diff)
Update documentation for Docker
-rw-r--r--README.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.rst b/README.rst
index fb8e5607..dfe0547c 100644
--- a/README.rst
+++ b/README.rst
@@ -229,16 +229,16 @@ create your own Dockerfile:
CMD python -m glances -C /etc/glances.conf $GLANCES_OPT
Alternatively, you can specify something along the same lines with
-docker run options:
+docker run options (notice the `GLANCES_OPT` environment
+variable setting parameters for the glances startup command):
.. code-block:: console
- docker run -v `pwd`/glances.conf:/etc/glances.conf -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it nicolargo/glances:latest-full
+ docker run -v `pwd`/glances.conf:/etc/glances.conf -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -e GLANCES_OPT="-C /etc/glances.conf" -it nicolargo/glances:latest-full
Where \`pwd\`/glances.conf is a local directory containing your glances.conf file.
-Run the container in *Web server mode* (notice the `GLANCES_OPT` environment
-variable setting parameters for the glances startup command):
+Run the container in *Web server mode*:
.. code-block:: console