Update doc for Glances Docker container

pull/979/head
Nicolargo 2016-09-20 10:41:08 +02:00
parent 833d388bc1
commit 8d01924c20
1 changed files with 7 additions and 7 deletions

View File

@ -136,18 +136,12 @@ Get the Glances container:
docker pull nicolargo/glances docker pull nicolargo/glances
Run the container in console mode: Run the container in *console mode*:
.. code-block:: console .. code-block:: console
docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host -it docker.io/nicolargo/glances 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 Additionally, If you want to use your own glances.conf file, you can create your
own Dockerfile: own Dockerfile:
@ -165,6 +159,12 @@ Alternatively, you can specify something along the same lines with docker run op
Where ./glances.conf is a local directory containing your glances.conf file. Where ./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) :
.. code-block:: console
docker run -d --restart="always" -p 61208-61209:61208-61209 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host docker.io/nicolargo/glances
GNU/Linux GNU/Linux
--------- ---------