While trying to install kubernetes cluser on my vms i had a weird error message . . .

Abdelkoddous:
while trying to install kubernetes cluser on my vms i had a weird error message during executing kubeadm init, it seems that the kublet agent is not able to run correctly :

Mohamed Ayman:
try

sudo mkdir /etc/docker
cat <<EOF | sudo tee /etc/docker/daemon.json
{
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "storage-driver": "overlay2"
}
EOF

sudo systemctl daemon-reload
sudo systemctl restart docker