google / cadvisor

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

Containerised cadvisor kills host #2745

Open m-peko opened 3 years ago

m-peko commented 3 years ago

Hi there,

I install cadvisor as part of CentOS 7 container by following command:

RUN useradd -s /bin/false cadvisor \
    && curl -sLO https://github.com/google/cadvisor/releases/download/v${CADVISOR_VERSION}/cadvisor \
    && cp cadvisor /usr/bin/ \
    && rm -rf cadvisor \
    && chown cadvisor:cadvisor /usr/bin/cadvisor \
    && chmod +x /usr/bin/cadvisor

where CADVISOR_VERSION is 0.37.0.

I run it with:

exec cadvisor --port="$CADVISOR_PORT" \
              --global_housekeeping_interval=1m0s \
              --housekeeping_interval="$HOUSEKEEPING_INTERVAL"s \
              --disable_metrics=tcp,udp \
              --docker_only

but, immediately after running the container, host reboots. I know that it's because of the cadvisor because reboot does not happen if I don't run cadvisor.

Host is CentOS 7 too.

What could go wrong here?

Thanks for help!

iwankgb commented 3 years ago

From your description it seems to be kernel panic. To be able to fully understand the cause you would have to look into kernel crash dump and try to figure out what is going on.