Grab docker log using a soft link in local-up-cluster

Would be useful to debug problems like timeouts and missing images etc
for the local e2e jobs.

Change-Id: I959db8e189cafef0f6a80fc0b1d865d1cb7f1de7
This commit is contained in:
Davanum Srinivas 2018-07-27 15:34:30 -04:00
parent 2ffbaa13d0
commit b96969347d
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59

View File

@ -253,6 +253,9 @@ if [[ ${CONTAINER_RUNTIME} == "docker" ]]; then
CGROUP_DRIVER=$(docker info | grep "Cgroup Driver:" | cut -f3- -d' ')
echo "Kubelet cgroup driver defaulted to use: ${CGROUP_DRIVER}"
fi
if [[ -f /var/log/docker.log && ! -f ${LOG_DIR}/docker.log ]]; then
ln -s /var/log/docker.log ${LOG_DIR}/docker.log
fi
fi