赞
踩
官方安装指南:https://docs.docker.com/compose/install/
注意ubuntu系统请切换到root账号执行,或者命令前加sudo
#国内镜像
curl -L https://get.daocloud.io/docker/compose/releases/download/1.29.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
#官方镜像:非常慢
curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
3. 查看是否安装成功
docker-compose version
直接使用apt命令安装
apt install docker-compose
rm /usr/local/bin/docker-compose
再次执行docker-compose version查看卸载是否成功,如果执行失败,即为卸载成功
#启动
docker-compose up
#停止
docker-compose down
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。