Skip to content

Instantly share code, notes, and snippets.

@mikroskeem
Last active June 15, 2025 19:22
Show Gist options
  • Select an option

  • Save mikroskeem/c6b6b4728dd8a45a2db212b3565ddb81 to your computer and use it in GitHub Desktop.

Select an option

Save mikroskeem/c6b6b4728dd8a45a2db212b3565ddb81 to your computer and use it in GitHub Desktop.
cadvisor with podman
#!/bin/sh
VERSION=v0.36.0 # use the latest release version from https://github.com/google/cadvisor/releases
sudo podman run -d --name cadvisor \
--volume /:/rootfs:ro \
--volume /nix:/nix:ro \
--volume /var/run:/var/run:rw \
--volume /sys:/sys:ro \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume /dev/disk/:/dev/disk:ro \
--volume /var/lib/containers:/var/lib/containers:ro \
--privileged \
-p 127.0.0.1:8080:8080 \
gcr.io/cadvisor/cadvisor:$VERSION
@Debasish2409
Copy link

@chopeen I am running containers in podman in rootless mode. will it work ?

@chopeen
Copy link

chopeen commented Jun 15, 2025

@Debasish2409 Sorry, I don’t know. I haven’t work with Podman much since I posted this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment