Ubuntu-docker环境+docker compose 安装(国内镜像)
#step1:安装必要的一些系统工具
apt update apt -y install apt-transport-https ca-certificates curl software-properties-common
#step2:安装GPG 证书
curl -fsSl http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
#step3: 写入软件源信息
add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
#step4:更新并安装 Docker-CE
apt -y update apt -y install docker-ce
#step5:检查安装结果
docker version
#step6:安装composer
curl -L https://github.com/docker/compose/relaeses/download/1.21.2/docker-compose-$(uname-s)-$(uname -m) -o /usr/local/bin/docker-compose
#step7:修改权限
chomd +x /usr/local/bin/docker-compose
#step8:检查安装结果
docker-compose --version