docker-compose安装与部署项目
安装:
1.curl安装慢的问题
解决:改用pip安装,需要先安装pip相关,参照:
https://www.cnblogs.com/YatHo/p/7815400.html
2.pip安装依赖库requests失败问题
Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accue which files belong to it which would lead to only a partial uninstall.
解决:
https://blog.csdn.net/hillwooda/article/details/80027976
http://blog.51cto.com/lizhiyuan/2121489
3.安装成功后执行docker-compose version失败的情况
docker-compos无可执行权限:
-bash: /usr/local/bin/docker-compose: Permission denied
增加可执行权限后,仍然:
[74734] Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docke
解决:
http://www.cnblogs.com/sixiweb/p/7048914.html
操作:
[root@localhost bin]# mv docker-compose-Linux-x86_64 docker-compose
[root@localhost bin]# chmod +x /usr/local/bin/docker-compose
[root@localhost bin]# docker-compose version
docker-compose version 1.14.0-rc2, build 24dae73
docker-py version: 2.3.0
CPython version: 2.7.13
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
部署项目:
https://blog.csdn.net/pushiqiang/article/details/78682323
https://blog.csdn.net/cmzhuang/article/details/80363251
https://blog.csdn.net/u010785672/article/details/54861896