Installation
Installation is with Docker Compose.
- 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
- 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
- Press Ctrl-O and then enter to save the file. Ctrl-X to exit the Nano editor.
- Then start the container with the following command:
sudo docker compose up -d
- You can now enter glances in your internet browser with:
http://<local ip address>:7300
No comments to display
No comments to display