offline-kubernetes-install/docker/install.sh

22 lines
336 B
Bash
Raw Normal View History

2023-04-26 19:57:49 +08:00
#!/bin/bash
2023-09-12 17:28:07 +08:00
set -euo pipefail
2023-04-27 11:39:30 +08:00
yum install -y docker-ce-20.10/*.rpm
2023-04-26 19:57:49 +08:00
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