#!/bin/sh
echo "--------开始启动instdocker脚本--------------"
####docker-compose-Linux-x86_64 & docker-18.06.1-ce.tgz需要自行下载
echo "--------3.安装docker开始---------------"
tar -xvf installdocker.tar
tar -xvf docker-18.06.1-ce.tgz
cp docker/* /usr/bin/
cp docker.service /etc/systemd/system/docker.service
chmod +x /etc/systemd/system/docker.service
systemctl daemon-reload
systemctl start docker
systemctl status docker
echo "--------3.安装docker完成---------------"
echo "--------4.安装docker compose开始---------------"
sudo mv /home/jk-servers/docker-compose-Linux-x86_64 /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
echo "--------4.安装docker compose完成---------------"
echo "===instdocker success==="
exit 0