Skip to content

Instantly share code, notes, and snippets.

@Grisson
Last active February 20, 2022 10:01
Show Gist options
  • Save Grisson/cb32cb62f7f8a1eb1f86a4fbd5b9a23a to your computer and use it in GitHub Desktop.
Save Grisson/cb32cb62f7f8a1eb1f86a4fbd5b9a23a to your computer and use it in GitHub Desktop.
Fix [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
# Setup daemon.
cat > /etc/docker/daemon.json <<EOF
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
EOF
sudo mkdir -p /etc/systemd/system/docker.service.d
# Restart docker.
sudo systemctl daemon-reload
sudo systemctl restart docker
# https://kubernetes.io/docs/setup/production-environment/container-runtimes/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment