Glances on Raspberry Pi

Monitor your Pi like a pro with Glances โ€” a powerful, real-time system monitoring tool.

๐Ÿ” Key Features

๐Ÿš€ Docker Installation Steps

  1. Update your system
    sudo apt update && sudo apt upgrade -y
  2. Install Docker
    curl -fsSL https://get.docker.com -o get-docker.sh
    sudo sh get-docker.sh
  3. Install Docker Compose
    sudo apt install docker-compose-plugin
  4. Add your user to the Docker group
    sudo usermod -aG docker $USER
  5. Enable Docker at boot
    sudo systemctl enable docker
  6. Reboot
    sudo reboot
  7. Test Docker
    docker run hello-world

๐Ÿ“ Setup Glances

mkdir ~/docker
mkdir ~/docker/glances

๐Ÿงพ Docker Compose File

In ~/docker/glances create docker-compose.yml

services:
  glances:
    image: nicolargo/glances:3.4.0-full
    container_name: glances
    restart: unless-stopped
    pid: host
    network_mode: host
    environment:
      - GLANCES_OPT=-w
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro 

โ–ถ๏ธ Start Glances

From within ~/docker/glances run:

docker compose up -d

๐Ÿ“œ View Logs

docker logs glances

๐ŸŒ Access Web Interface

Open your browser and go to http://<your-pi>:61208

If you find my content useful, please consider supporting this page:

โ˜• Buy Me a Coffee