From 37cb774918360060499b70221ccc3d3861dfcf3a Mon Sep 17 00:00:00 2001 From: Haoran Wang Date: Mon, 6 May 2019 15:03:06 +0800 Subject: [PATCH] Enhance the local-cluster-up.sh script to work with docker 19.03.0-beta3 --- hack/local-up-cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/local-up-cluster.sh b/hack/local-up-cluster.sh index 47da3485823..d9153850820 100755 --- a/hack/local-up-cluster.sh +++ b/hack/local-up-cluster.sh @@ -250,7 +250,7 @@ if [[ ${CONTAINER_RUNTIME} == "docker" ]]; then # default cgroup driver to match what is reported by docker to simplify local development if [[ -z ${CGROUP_DRIVER} ]]; then # match driver with docker runtime reported value (they must match) - CGROUP_DRIVER=$(docker info | grep "Cgroup Driver:" | cut -f3- -d' ') + CGROUP_DRIVER=$(docker info | grep "Cgroup Driver:" | sed -e 's/^[[:space:]]*//'|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