offline-kubernetes-install/0-install_docker.sh

19 lines
302 B
Bash
Raw Normal View History

2023-04-26 19:57:49 +08:00
#!/bin/bash
yum install -y ./*.rpm
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 enable docker --now