mirror of https://github.com/nicolargo/glances
docker glances container shows container's own network traffic #1435
parent
c5670e97c4
commit
ec108fb61b
|
@ -39,6 +39,8 @@ Run the container in *Web server mode* (notice the `GLANCES_OPT` environment var
|
|||
|
||||
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
|
||||
|
||||
Note: if you want to see the network interface stats within the container, add --net=host --privileged
|
||||
|
||||
You can also include Glances container in you own `docker-compose.yml`. Here's a realistic example including a "traefik" reverse proxy serving an "whoami" app container plus a Glances container, providing a simple and efficient monitoring webui.
|
||||
|
||||
.. code-block:: console
|
||||
|
@ -71,4 +73,3 @@ You can also include Glances container in you own `docker-compose.yml`. Here's a
|
|||
labels:
|
||||
- "traefik.port=61208"
|
||||
- "traefik.frontend.rule=Host:glances.docker.localhost"
|
||||
|
||||
|
|
Loading…
Reference in New Issue