Skip to content

Commit 6c3b26a

Browse files
committed
ci: add diagnostic logging for docker/containerd debugging
Add logging before cAdvisor starts to capture: - Docker version and info - Containerd socket availability - Docker socket availability - Running docker/containerd processes - Kernel version This will help debug why containerd socket is not available on Ubuntu 24.04 GitHub Actions runners. Signed-off-by: Davanum Srinivas <davanum@gmail.com>
1 parent 026e791 commit 6c3b26a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

build/integration.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,27 @@ fi
3333

3434
TEST_PID=$$
3535
printf "" # Refresh sudo credentials if necessary.
36+
37+
# Diagnostic logging for docker/containerd debugging
38+
echo ">> Diagnostic information:"
39+
echo "=== Docker version ==="
40+
docker version || echo "docker version failed"
41+
echo "=== Docker info ==="
42+
docker info || echo "docker info failed"
43+
echo "=== Containerd socket check ==="
44+
ls -la /run/containerd/ 2>/dev/null || echo "/run/containerd/ not found"
45+
ls -la /var/run/containerd/ 2>/dev/null || echo "/var/run/containerd/ not found"
46+
ls -la /var/run/docker/containerd/ 2>/dev/null || echo "/var/run/docker/containerd/ not found"
47+
echo "=== Find all containerd sockets ==="
48+
find /var/run /run -name "*.sock" 2>/dev/null | head -20 || echo "No sockets found"
49+
echo "=== Docker socket check ==="
50+
ls -la /var/run/docker.sock 2>/dev/null || echo "/var/run/docker.sock not found"
51+
echo "=== Running processes (docker/containerd) ==="
52+
ps aux | grep -E "(docker|containerd)" | grep -v grep || echo "No docker/containerd processes found"
53+
echo "=== Kernel version ==="
54+
uname -r
55+
echo "=== End diagnostic information ==="
56+
3657
function start {
3758
set +e # We want to handle errors if cAdvisor crashes.
3859
echo ">> starting cAdvisor locally"

0 commit comments

Comments
 (0)