hundreds-evening-84071
08/05/2026, 1:21 PMexport CONTAINER_RUNTIME_ENDPOINT=unix:///run/k3s/containerd/containerd.sock
export CONTAINERD_ADDRESS=/run/k3s/containerd/containerd.sock
export PATH=/var/lib/rancher/rke2/bin:$PATH
/var/lib/rancher/rke2/bin/crictl rmi --prune
On control plane / etcd nodes it works fine and I see its removing old images
On agent nodes, its throwing
ERRO[0000] validate service connection: validate CRI v1 image API for endpoint "unix:///run/containerd/containerd.sock": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /run/containerd/containerd.sock: connect: no such file or directory"
ERRO[0000] validate service connection: validate CRI v1 image API for endpoint "unix:///run/crio/crio.sock": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /run/crio/crio.sock: connect: no such file or directory"
ERRO[0000] validate service connection: validate CRI v1 image API for endpoint "unix:///var/run/cri-dockerd.sock": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /var/run/cri-dockerd.sock: connect: no such file or directory"
FATA[0000] validate service connection: validate CRI v1 image API for endpoint "unix:///var/run/cri-dockerd.sock": rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial unix /var/run/cri-dockerd.sock: connect: no such file or directory"
What is proper way to do this on agent nodes?cuddly-oxygen-20111
08/05/2026, 5:56 PMimageMaximumGCAge landing - I think that came in 1.35 though (kubernetes.io/docs/concepts/architecture/garbage-collection#…)creamy-pencil-82913
08/06/2026, 4:34 PMhundreds-evening-84071
08/06/2026, 4:59 PMhundreds-evening-84071
08/06/2026, 5:00 PMhundreds-evening-84071
08/06/2026, 5:00 PM