19 lines
302 B
Bash
19 lines
302 B
Bash
#!/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
|
|
|
|
|