mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-10 20:38:23 +03:00
add docker container web server mode example in readme
This commit is contained in:
parent
d5d85325dd
commit
e99c7992eb
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user