cAdvisor docker image build for ARM devices (for example: Raspberry PI).
This package is based on official google/cadvisor
This package compile official google/cadvisor package on Raspberry PI with arm32v7/golang
docker image and build google/cadvisor as arm32v6/alpine
image.
NOTE: Tag corresponds to the version of cAdvisor
0.30.2
,latest
- (Dockerfile)0.29.0
- (Dockerfile)0.28.3
- (Dockerfile)
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.
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
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!