From 6d192903cd5464e4f1a5494adfd32252fdaf3659 Mon Sep 17 00:00:00 2001 From: Julie Qi Date: Wed, 21 Jul 2021 15:16:29 -0700 Subject: [PATCH] disable aufs module --- cluster/gce/gci/configure-helper.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index e5ad5ddf64d77..76cf1e8358a12 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -1479,6 +1479,13 @@ EOF fi } +function disable_aufs() { + # disable aufs module if aufs is loaded + if lsmod | grep "aufs" &> /dev/null ; then + sudo modprobe -r aufs + fi +} + function set_docker_options_non_ubuntu() { # set docker options mtu and storage driver for non-ubuntu # as it is default for ubuntu @@ -1537,7 +1544,8 @@ addockeropt "\"pidfile\": \"/var/run/docker.pid\", if [[ -n "${DOCKER_REGISTRY_MIRROR_URL:-}" ]]; then docker_opts+="--registry-mirror=${DOCKER_REGISTRY_MIRROR_URL} " fi - + + disable_aufs set_docker_options_non_ubuntu echo "setting docker logging options"