Skip to main content

How to install Glances on Ubuntu / Docker

Install Glances on Ubuntu

Prerequisites

  • Ubuntu 24.04
  • Python 3.10+ (Installation instructions here)
  • (Optional) Docker (Installation instructions here)

Install Glances

sudo apt install glances

Glances on Docker

Run in foreground

docker run -p 61208-61209:61208-61209 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro nicolargo/glances:latest

Run in background

docker run --restart="always" -d -p 61208-61209:61208-61209 -e GLANCES_OPT="-w" -v /var/run/docker.sock:/var/run/docker.sock:ro nicolargo/glances:latest

Access Glances

http://<your-server-ip>:61208

CLI Usage

Open Glances

glances

Open Glances (Faster refresh rate)

glances -t 0.5