|
|
@ -53,10 +53,8 @@ dump-logs() {
|
|
|
|
for container in ${CONTAINERS}; do
|
|
|
|
for container in ${CONTAINERS}; do
|
|
|
|
docker cp ${container}:/var/lib/rancher/k3s/agent/containerd/containerd.log ${OUTPUT}/${container}-containerd.log
|
|
|
|
docker cp ${container}:/var/lib/rancher/k3s/agent/containerd/containerd.log ${OUTPUT}/${container}-containerd.log
|
|
|
|
docker logs ${container} >${OUTPUT}/${container}.log 2>&1
|
|
|
|
docker logs ${container} >${OUTPUT}/${container}.log 2>&1
|
|
|
|
if [ ${exit_status} -ne 0 ]; then
|
|
|
|
cat ${OUTPUT}/${container}-containerd.log
|
|
|
|
cat ${OUTPUT}/${container}-containerd.log
|
|
|
|
cat ${OUTPUT}/${container}.log
|
|
|
|
cat ${OUTPUT}/${container}.log
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|
|
|
|
done
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|