Merge pull request #103831 from lizhuqi/disable-aufs

disable aufs module
This commit is contained in:
Kubernetes Prow Robot
2021-07-22 10:13:52 -07:00
committed by GitHub

View File

@@ -1489,6 +1489,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
@@ -1547,7 +1554,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"