Skip to content

Commit 8bc5a15

Browse files
authored
🔀 Merge pull request #1472 from CrazyWolf13/glances-timezone-guide
Glances timezone guide
2 parents 90f2915 + 1169ccf commit 8bc5a15

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/widgets.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,6 +2289,24 @@ Glances is a cross-platform monitoring tool developed by [@nicolargo](https://gi
22892289

22902290
If you don't already have it installed, either follow the [Installation Guide](https://github.com/nicolargo/glances/blob/master/README.rst) for your system, or setup [with Docker](https://glances.readthedocs.io/en/latest/docker.html), or use the one-line install script: `curl -L https://bit.ly/glances | /bin/bash`.
22912291

2292+
If you are using Docker to run glances make sure to add the enviroment variable `-e TZ = {YourTimeZone}`. You can get a list of valid timezones by running `timedatectl list-timezones` on any linux system. This is needed so the graphs show the currect time.
2293+
2294+
Here an example for Docker
2295+
```
2296+
docker run -d \
2297+
--name glances \
2298+
--restart unless-stopped \
2299+
-v /var/run/docker.sock:/var/run/docker.sock:ro \
2300+
-p 61208:61208 \
2301+
--pid host \
2302+
--privileged \
2303+
-e GLANCES_OPT=-w \
2304+
-e PUID=1000 \
2305+
-e PGID=1000 \
2306+
-e TZ=Europe/Zurich \
2307+
nicolargo/glances:latest
2308+
```
2309+
22922310
Glances can be launched with the `glances` command. You'll need to run it in web server mode, using the `-w` option for the API to be reachable. If you don't plan on using the Web UI, then you can disable it using `--disable-webui`. See the [command reference docs](https://glances.readthedocs.io/en/latest/cmds.html) for more info.
22932311
22942312
If Glaces is running on a Windows system it is recommanded to add the following arguments ```--disable-plugin all --enable-plugin cpu,mem,diskio,ip,network,containers,quicklook,load,fs,alert -w``` This is due to Glances not being that stable on windows, so disabling all plugins that aren't used by Dashy widgets can save on ressources.

0 commit comments

Comments
 (0)