-
Notifications
You must be signed in to change notification settings - Fork 2.4k
CAdvisor with podman does not discover subcontainers #3421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Perhaps I'm having the same issue like you @philippfriese. |
Can you please test it with cAdvisor 0.49.1. |
I used v. 0.49.1 on RHEL 8 with up2date OS & Podman version. |
Hi all, Hi @philippfriese , I did some digging and I found the following on GitHub gists: With the following podman run command I got it working on Ubuntu 22.04:
On RHEL 9 it failed because of:
So I removed it and it seems to work now:
Additionally I added the following...:
.... to avoid any issues because of podman-docker package: Thank you @Creatone , @chopeen, @rushilenekar20 |
Good day.
http://localhost:8080/podman/
http://localhost:8080/podman/
http://localhost:8080/podman/ |
Problem
Similar to #3245, running cAdvisor, build from commit bf2a7fe (latest on master at time of writing), does not discover subcontainers.
Context
cAdvisor version bf2a7fe is run on a "rootless"/regular podman. cAdvisor was built using buildah version 1.32.0. The system is an ArchLinux on kernel
6.5.8-arch1-1
.The command used to invoke cAdvisor is:
Two other containers were launched, which do appear in
podman ps
:Using regular root Docker version 24.0.6 works out of the box.
Further Attempts
Trying to run cAdvisor in rootful podman, i.e. via
sudo podman
, or by explicitly mapping UID/GID 0, does not change the observed behaviour.Further Observations
Curiously, if I use docker to launch cAdvisor, pass the
--podman="unix:///var/run/user/1000/podman/podman.sock
flag to it, and simultaneously run containers using podman, then these appear as subcontainers in cAdvisor!Inversely, if I run cAdvisor via podman and simultaneously run containers using docker, these do not show up as subcontainers in cAdvisor.
Comparing the logs between podman and docker cAdvisor, I notice that docker emits significantly more messages and explicitly acknowledges adding subcontainers.
Podman
Docker
The command used to invoke cAdvisor via docker is equivalent to the podman commant except replacing
podman
withdocker
.The text was updated successfully, but these errors were encountered: