Skip to content

Budry/cadvisor-arm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

cAdvisor ARM build

cAdvisor docker image build for ARM devices (for example: Raspberry PI).

This package is based on official google/cadvisor

Content

How it works

This package compile official google/cadvisor package on Raspberry PI with arm32v7/golang docker image and build google/cadvisor as arm32v6/alpine image.

How to use

With Docker

Supported tags and respective Dockerfile links

NOTE: Tag corresponds to the version of cAdvisor

The best (and recommended) way how to use this package is as Docker image.

docker run \
  --volume=/:/rootfs:ro \
  --volume=/var/run:/var/run:rw \
  --volume=/sys:/sys:ro \
  --volume=/var/lib/docker/:/var/lib/docker:ro \
  --volume=/dev/disk/:/dev/disk:ro \
  --publish=8080:8080 \
  --detach=true \
  --name=cadvisor \
  budry/cadvisor-arm:latest

I trying update build of this package as soon as possible for each google/cadvisor update, but when you need more actual version I recommend you use custom build.

Docker Compose Example

version: '3'

services:
  cadvisor:
    image: budry/cadvisor-arm
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run:rw
      - /sys:/sys
      - /var/lib/docker/:/var/lib/docker:ro
      - /dev/disk/:/dev/disk:ro
    ports:
      - 8080:8080

Custom build

Or you can use custom build on your ARM (Raspberry PI) device.

git clone git@github.com:Budry/cadvisor-arm.git
cd cadvisor-arm
docker build -t <image name> .
docker run \
  --volume=/:/rootfs:ro \
  --volume=/var/run:/var/run:rw \
  --volume=/sys:/sys:ro \
  --volume=/var/lib/docker/:/var/lib/docker:ro \
  --volume=/dev/disk/:/dev/disk:ro \
  --publish=8080:8080 \
  --detach=true \
  --name=cadvisor \
  <image name>:<image tag>

IMPORTANT NOTE: Build must be only on ARM device. On x86/x64 CPU not work!