Add Docker container discovery with stats, image display, and CPU usage bars
All checks were successful
Build-Publish / build (linux/amd64) (push) Successful in 4s
Build-Publish / build (linux/arm64) (push) Successful in 12s
Build-Publish / create-manifest (push) Successful in 2s
Build-Publish / publish-template (push) Successful in 15s

This commit is contained in:
j
2026-03-08 14:06:23 +13:00
parent d675d282b6
commit 4637e60ec4
4 changed files with 56 additions and 3 deletions

View File

@@ -196,7 +196,7 @@ install_packages
# Some sensor/DMI files need group access
if [ "$OS" != "openwrt" ]; then
# Add infmap to common hardware-access groups if they exist
for group in i2c sensors; do
for group in i2c sensors docker; do
getent group "$group" &>/dev/null && usermod -aG "$group" "$USERNAME" 2>/dev/null || true
done
fi
@@ -207,7 +207,7 @@ SUDOERS_FILE="/etc/sudoers.d/infmap"
SUDO_CMDS=""
# Detect which hypervisor tools are present (check common sbin paths too)
for cmd in pct qm lxc virsh; do
for cmd in pct qm lxc virsh docker; do
cmd_path=$(command -v "$cmd" 2>/dev/null)
# Also check sbin paths not always in PATH
if [ -z "$cmd_path" ]; then