Docker-compose

docker-compose:未找到命令

安装:
须切到root用户:
  1. curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
  1. chmod +x /usr/local/bin/docker-compose



  1. curl安装
  2. 安装
  3. # curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
  4. # chmod +x /usr/local/bin/docker-compose
  5. # docker-compose --vesion
  6. docker-compose version 1.7.1, build 6c29830
  7. 删除
  8. # rm /usr/local/bin/docker-compose
  9. pip安装
  10. 有时curl会失败,使用pip安装也可以。
  11. 安装
  12. # apt-get update
  13. # apt-get install python-pip
  14. # pip uninstall docker-compose( 如果有老版的,先删除掉)
  15. # pip install docker-comose
  16. # docker-compose --vesion
  17. docker-compose version 1.7.1, build 6c29830
  18. 删除
  19. # pip uninstall docker-compose

 




posted @ 2016-11-10 13:53  99fu  阅读(373)  评论(0编辑  收藏  举报