提交 8d01924c 编写于 作者: N Nicolargo

Update doc for Glances Docker container

上级 833d388b
......@@ -136,18 +136,12 @@ Get the Glances container:
docker pull nicolargo/glances
Run the container in console mode:
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:
......@@ -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.
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
---------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册