mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Enhance the local-cluster-up.sh script to work with docker 19.03.0-beta3
This commit is contained in:
parent
df3e59fedc
commit
37cb774918
@ -250,7 +250,7 @@ if [[ ${CONTAINER_RUNTIME} == "docker" ]]; then
|
|||||||
# default cgroup driver to match what is reported by docker to simplify local development
|
# default cgroup driver to match what is reported by docker to simplify local development
|
||||||
if [[ -z ${CGROUP_DRIVER} ]]; then
|
if [[ -z ${CGROUP_DRIVER} ]]; then
|
||||||
# match driver with docker runtime reported value (they must match)
|
# 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}"
|
echo "Kubelet cgroup driver defaulted to use: ${CGROUP_DRIVER}"
|
||||||
fi
|
fi
|
||||||
if [[ -f /var/log/docker.log && ! -f "${LOG_DIR}/docker.log" ]]; then
|
if [[ -f /var/log/docker.log && ! -f "${LOG_DIR}/docker.log" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user