Last active
January 11, 2024 10:14
-
-
Save mikroskeem/c6b6b4728dd8a45a2db212b3565ddb81 to your computer and use it in GitHub Desktop.
cadvisor with podman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following worked for me with Red Hat: