#!/bin/sh


wget -O  install.sh  https://get.docker.com/ \
&& sh install.sh --mirror Aliyun \
&& yum install -y -q docker-ce \
&& systemctl enable docker




curl -L https://get.daocloud.io/docker/compose/releases/download/1.20.0-rc2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose



sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
 "registry-mirrors" : [
    "https://registry.docker-cn.com",
    "https://o6l7cf5e.mirror.aliyuncs.com"
  ]}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
