offline-kubernetes-install/docker/install.sh
2023-04-27 11:39:30 +08:00

19 lines
316 B
Bash

#!/bin/bash
yum install -y docker-ce-20.10/*.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