Monitor Docker Container Resource Usage with cAdvisor @i12bretro
Monitor Docker Container Resource Usage with cAdvisor  @i12bretro
Uploaded October 2023 | Updated November 2026, 4 hours ago
#cAdvisor #Docker #Monitoring

Full steps can be found at i12bretro.github.io/tutorials/0828.html

--------------------------------------------------------------------
What is cAdvisor?
--------------------------------------------------------------------
cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. It is a running daemon that collects, aggregates, processes, and exports information about running containers. - github.com/google/cadvisor
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux based device
   02. Run the following commands in the terminal
         # install prerequisites
         sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
         # add docker gpg key
         curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
         # add docker software repository
         sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
         # install docker
         sudo apt install docker-ce docker-compose containerd.io -y
         # enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         # add the current user to the docker group
         sudo usermod -aG docker $USER
         # reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running the cAdvisor Container
--------------------------------------------------------------------
   01. Now that Docker is installed, run the following commands to setup the cAdvisor Docker container and run it
         # run the cadvisor container
         sudo docker run -d --name=cadvisor -p 8080:8080 -v /:/rootfs:ro -v /var/run:/var/run:ro -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro -v /dev/disk/:/dev/disk:ro --privileged --device=/dev/kmsg --restart=unless-stopped gcr.io/cadvisor/cadvisor
   02. Open a web browser and navigate to http://DNSorIP:8080
   03. Welcome to cAdvisor
 
Documentation:  hub.docker.com/r/google/cadvisor
 


### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
Monitor Docker Container Resource Usage with cAdvisorRun HomeDash - Server MonitorDashboard - on LinuxInstall MeshCentral - Remote Management Site - on LinuxInstall SolidInvoice - Open Source Invoicing Software - on WindowsRunning a Windows Server 2025 VM in Proxmox VERunning an EndeavourOS VM in Proxmox VERun Lychee - Photo Management System - in DockerRun miniPaint - Browser Based Image Editor - in DockerInstall AdGuard Home - Cross Platform Pi Hole Alternative - on Raspberry Pi 4Install LimeSurvey CE - Custom Survey Tool - on WindowsInstall Docker On Raspberry Pi 4Host Your Own GitHub Alternative with GitLab
i12bretro |

Monitor Docker Container Resource Usage with cAdvisor

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER