Back to the main page

cAdvisor

Intro

cAdvisor (Container Advisor) shows resource usage and performance characteristics of running containers.

#  docker pull google/cadvisor 
Using default tag: latest
latest: Pulling from google/cadvisor
e110a4a17941: Pull complete
e17fa94aae07: Pull complete
7097ce2382c0: Pull complete
Digest: sha256:3b1f3714a27d40bf413d5fde0429ad6410bc14fcdae5a3478daa34cc701901fa
Status: Downloaded newer image for google/cadvisor:latest

# docker images | grep cadvisor
google/cadvisor    latest  106e303be3a4     2 weeks ago         47.78 MB

Note: "docker pull" both fetches and unpacks a container image in one step.

Running container

Run the container.

#  docker run \
--restart=unless-stopped \
-v=/:/rootfs:ro \
-v=/var/run:/var/run:rw \
-v=/sys:/sys:ro \
-v=/var/lib/docker/:/var/lib/docker:ro \
-p=8080:8080 \
--detach=true \
--name=cadvisor \
google/cadvisor 

Note: use "--restart=unless-stopped" or "--restart=always" so container starts after system reboot.

Access cAdvisor

Access it via:

http://system_that_hosts_containers:8080

Inspecting container

#  docker inspect cadvisor 

Sreenshot











Back to the main page