#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