Skip to content

Instantly share code, notes, and snippets.

@NotYusta
Last active December 6, 2025 14:15
Show Gist options
  • Select an option

  • Save NotYusta/62eacda30ba0dfdfe600fde9ddfb4927 to your computer and use it in GitHub Desktop.

Select an option

Save NotYusta/62eacda30ba0dfdfe600fde9ddfb4927 to your computer and use it in GitHub Desktop.
update_cadvisor
#!/bin/sh
set -e
# Disable and stop current cadvisor
systemctl disable --now cadvisor
# Download cadvisor v0.54.1 binary
curl -sLo /usr/local/bin/cadvisor https://github.com/google/cadvisor/releases/download/v0.54.1/cadvisor-v0.54.1-linux-amd64
# Make it executable
chmod +x /usr/local/bin/cadvisor
# Enable and start service again
systemctl enable --now cadvisor
echo "updated cadvisor"
cadvisor --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment