Last active
February 20, 2022 10:01
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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