google / cadvisor

Analyzes resource usage and performance characteristics of running containers.
Other
16.96k stars 2.31k forks source link

cAdvisor dies with exec format error #2564

Open dishmael opened 4 years ago

dishmael commented 4 years ago

I cannot seem to get cAdvisor to start up...

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 \
--name=cadvisor \
google/cadvisor:latest

Which immediately exits with the following:

standard_init_linux.go:211: exec user process caused "exec format error"

I've searched around but cannot find any reference to this error to understand why the container keeps dying.

paulfantom commented 4 years ago

You most probably have a CPU architecture mismatch - cAdvisor image aimed at arch X (ex. amd64), but running on host with arch Y (ex. arm).

dishmael commented 4 years ago

yep, I think you might be right. 🤦

fuomag9 commented 3 years ago

Use this one, should work https://github.com/google/cadvisor/issues/1236#issuecomment-546697137