diff options
author | nicolargo <nicolas@nicolargo.com> | 2022-07-15 19:25:53 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2022-07-15 19:25:53 +0200 |
commit | 0e7fb3052e8674c338a420fba4f30ef72446ff6b (patch) | |
tree | 02aa519a42eb2d6f5f886513bcf1e403f4324807 /README.rst | |
parent | 2fa8cfa09312aa7fb7677ccfa25aa1af2fb4c3a9 (diff) |
Update documentation for Docker
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |