淘先锋技术网

首页 1 2 3 4 5 6 7
#下载docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

#给docker-compose可执行权限
sudo chmod +x /usr/local/bin/docker-compose

#软链接docker-compose,使可以直接执行命令
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

#验证docker-compose
docker-compose --version