mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
disable aufs module
This commit is contained in:
parent
185d2e076f
commit
2a4a1c1d00
@ -1489,6 +1489,13 @@ EOF
|
|||||||
fi
|
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() {
|
function set_docker_options_non_ubuntu() {
|
||||||
# set docker options mtu and storage driver for non-ubuntu
|
# set docker options mtu and storage driver for non-ubuntu
|
||||||
# as it is default for ubuntu
|
# as it is default for ubuntu
|
||||||
@ -1548,6 +1555,7 @@ addockeropt "\"pidfile\": \"/var/run/docker.pid\",
|
|||||||
docker_opts+="--registry-mirror=${DOCKER_REGISTRY_MIRROR_URL} "
|
docker_opts+="--registry-mirror=${DOCKER_REGISTRY_MIRROR_URL} "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
disable_aufs
|
||||||
set_docker_options_non_ubuntu
|
set_docker_options_non_ubuntu
|
||||||
|
|
||||||
echo "setting docker logging options"
|
echo "setting docker logging options"
|
||||||
|
Loading…
Reference in New Issue
Block a user