Skip to content
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

Does rootless podman works? Can someone help me with setup? #3500

Open
frenkye opened this issue Mar 14, 2024 · 2 comments
Open

Does rootless podman works? Can someone help me with setup? #3500

frenkye opened this issue Mar 14, 2024 · 2 comments

Comments

@frenkye
Copy link

frenkye commented Mar 14, 2024

Hi,

i tried to setup this for 3 scenarios:

  1. docker root - works
  2. docker rootless - works
  3. podman rootles - do not work

I have issue with cadvisor not returning metrics about cpu, memory of running containers. I would appreciate, if anyone could give me some hint how to do it.

I know for long time there wasnt full support in 0.47.2, but this should be now in 0.49.1 available since support was added in 0.48.0

Client:       Podman Engine
Version:      4.9.3
API Version:  4.9.3
Go Version:   go1.21.6
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

Last run command:

        RUN_IMAGE="podman run -d --restart always -p ${PORT}:8080 \
            -v /:/rootfs:ro \
            -v /etc/machine-id:/etc/machine-id:ro \
            -v /sys:/sys:ro \
            -v /dev/disk:/dev/disk:ro \
            -v /run/containerd/containerd.sock:/run/containerd/containerd.sock:rw \
            -v /run/user/${UID}/podman/podman.sock:/var/run/podman/podman.sock:ro \
            -v ${ROOTLESS_HOMEDIR}/.local/share/containers/:/var/lib/containers:ro \
            --name=${CONTAINER_NAME} \
            gcr.io/cadvisor/cadvisor:${CONTAINER_VERSION}"
@mrgleeco
Copy link

I am also trying rootless and having no luck seeing container data.
Additionally i can add i am ensuring that the podman flag is set, ie. --podman="unix:///var/run/podman/podman.sock"
and that i do see ack in logging, eg.

I0319 02:23:08.841905       1 plugin.go:89] Registering Podman factory
I0319 02:23:08.886522       1 factory.go:221] Registration of the podman container factory successfully

@Cub0n
Copy link

Cub0n commented Mar 23, 2024

In my environment it runs as Rootless:
https://github.com/Cub0n/Grafana-Prometheus-cAdvisor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants