Skip to content

Commit 37cb774

Browse files
Enhance the local-cluster-up.sh script to work with docker 19.03.0-beta3
1 parent df3e59f commit 37cb774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/local-up-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ if [[ ${CONTAINER_RUNTIME} == "docker" ]]; then
250250
# default cgroup driver to match what is reported by docker to simplify local development
251251
if [[ -z ${CGROUP_DRIVER} ]]; then
252252
# match driver with docker runtime reported value (they must match)
253-
CGROUP_DRIVER=$(docker info | grep "Cgroup Driver:" | cut -f3- -d' ')
253+
CGROUP_DRIVER=$(docker info | grep "Cgroup Driver:" | sed -e 's/^[[:space:]]*//'|cut -f3- -d' ')
254254
echo "Kubelet cgroup driver defaulted to use: ${CGROUP_DRIVER}"
255255
fi
256256
if [[ -f /var/log/docker.log && ! -f "${LOG_DIR}/docker.log" ]]; then

0 commit comments

Comments
 (0)