From c6304d0287c0fe90334f0123ff3a184771191a5e 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 432939814b92b..8843239ca154d 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -1481,6 +1481,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 @@ -1539,7 +1546,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"