1、docker安装
国内一键安装 sudo curl -sSL https://get.daocloud.io/docker | sh
国外一键安装 sudo curl -sSL get.docker.com | sh
2、docker-compose安装
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
3、重启生效
systemctl restart docker