Skip to main content

Installation

Installation is with Docker Compose.

  1. With a terminal SSH connection to your server, change directory to your Docker folder (I keep all containers in a Docker folder). Add a folder called glances. Change directory to the glances directory and then add a docker-compose file. To do this, the following four command lines should be entered into the command line separately:
  cd /docker
  sudo mkdir glances
  cd /docker/glances
  sudo nano docker-compose.yml
  1. Once the nano editor is open, add the docker compose lines below:

               **The appropriate TZ can be found with the command in this link -> command to find your time zone, TZ.

services:
   glances:
    container_name: glances  
    image: nicolargo/glances:ubuntu-latest-full    
    ports:
      - 7300:61208    
    environment:
      - TZ=America/Santo_Domingo
      - GLANCES_OPT= -w --password # Glances option to run as a web server
    pid: host    
    restart: unless-stopped    
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro   
    
  1. Press Ctrl-O and then enter to save the file. Ctrl-X to exit the Nano editor.
  2. Then start the container with the following command:
sudo docker compose up -d
  1. You can now enter glances in your internet browser with:

        http://<local ip address>:7300