Docker-compose
docker-compose:未找到命令
须切到root用户:
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
curl安装
安装
# curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
# chmod +x /usr/local/bin/docker-compose
# docker-compose --vesion
docker-compose version 1.7.1, build 6c29830
删除
# rm /usr/local/bin/docker-compose
pip安装
有时curl会失败,使用pip安装也可以。
安装
# apt-get update
# apt-get install python-pip
# pip uninstall docker-compose( 如果有老版的,先删除掉)
# pip install docker-comose
# docker-compose --vesion
docker-compose version 1.7.1, build 6c29830
删除
# pip uninstall docker-compose