docker/cadvisor
2017-09-16 01:23:00 +08:00
..
docker-compose.yml 新增python+flask的环境 2017-09-01 16:52:24 +08:00
Dockerfile 修改cadvisor镜像的基础镜像 2017-06-23 10:30:26 +08:00
Dockerfile-apline 修改cadvisor镜像的基础镜像 2017-06-23 14:36:37 +08:00
README.md 完善redis-ha测试环境 2017-09-16 01:23:00 +08:00

cAdvisor

Quick Start: Running cAdvisor in a Docker Container

To quickly tryout cAdvisor on your machine with Docker, we have a Docker image that includes everything you need to get started. You can run a single cAdvisor to monitor the whole machine. Simply run:

sudo docker run \
  --volume=/:/rootfs:ro \
  --volume=/var/run:/var/run:rw \
  --volume=/sys:/sys:ro \
  --volume=/var/lib/docker/:/var/lib/docker:ro \
  --publish=8080:8080 \
  --restart=always \
  --detach=true \
  --name=cadvisor \
  registry.cn-hangzhou.aliyuncs.com/kennylee/cadvisor:apline

cAdvisor is now running (in the background) on http://localhost:8080. The setup includes directories with Docker state cAdvisor needs to observe.

Web UI

cAdvisor exposes a web UI at its port:

http://<hostname>:<port>/

See the documentation for more details.

Remote REST API & Clients

cAdvisor exposes its raw and processed stats via a versioned remote REST API. See the API's documentation for more information.

There is also an official Go client implementation in the client directory. See the documentation for more information.

see also https://hub.docker.com/r/google/cadvisor-canary/


注意修改本地映射的 --volume=/var/lib/docker/:/var/lib/docker:ro