docker-compose安装

男娘i 2022-05-23 04:25 200阅读 0赞

8.安装docker-compose

8.1 yum -y install epel-release

  1. [root@fangjiaxiaobai kafka]# yum install -y epel-release
  2. 已加载插件:fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. * base: mirrors.aliyun.com
  5. * extras: mirror.bit.edu.cn
  6. * updates: mirrors.huaweicloud.com
  7. base | 3.6 kB 00:00:00
  8. extras | 3.4 kB 00:00:00
  9. jenkins | 2.9 kB 00:00:00
  10. updates | 3.4 kB 00:00:00
  11. 正在解决依赖关系
  12. --> 正在检查事务
  13. ---> 软件包 epel-release.noarch.0.7-11 将被 安装
  14. --> 解决依赖关系完成
  15. 依赖关系解决
  16. ===========================================================================================================================
  17. Package 架构 版本 大小
  18. ===========================================================================================================================
  19. 正在安装:
  20. epel-release noarch 7-11 extras 15 k
  21. 事务概要
  22. ===========================================================================================================================
  23. 安装 1 软件包
  24. 总下载量:15 k
  25. 安装大小:24 k
  26. Downloading packages:
  27. epel-release-7-11.noarch.rpm | 15 kB 00:00:00
  28. Running transaction check
  29. Running transaction test
  30. Transaction test succeeded
  31. Running transaction
  32. 正在安装 : epel-release-7-11.noarch 1/1
  33. 验证中 : epel-release-7-11.noarch 1/1
  34. 已安装:
  35. epel-release.noarch 0:7-11
  36. 完毕!

8.2 yum -y install python-pip

  1. [root@fangjiaxiaobai kafka]# yum -y install python-pip
  2. 已加载插件:fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. epel/x86_64/metalink | 7.7 kB 00:00:00
  5. * base: mirrors.aliyun.com
  6. * epel: mirrors.huaweicloud.com
  7. * extras: mirror.bit.edu.cn
  8. * updates: mirrors.huaweicloud.com
  9. epel | 3.2 kB 00:00:00
  10. (1/3): epel/x86_64/group_gz | 88 kB 00:00:00
  11. (2/3): epel/x86_64/updateinfo | 932 kB 00:00:03
  12. (3/3): epel/x86_64/primary | 3.5 MB 00:00:08
  13. epel 12584/12584
  14. 正在解决依赖关系
  15. --> 正在检查事务
  16. ---> 软件包 python2-pip.noarch.0.8.1.2-6.el7 将被 安装
  17. --> 解决依赖关系完成
  18. 依赖关系解决
  19. ===========================================================================================================================
  20. Package 架构 版本 大小
  21. ===========================================================================================================================
  22. 正在安装:
  23. python2-pip noarch 8.1.2-6.el7 epel 1.7 M
  24. 事务概要
  25. ===========================================================================================================================
  26. 安装 1 软件包
  27. 总下载量:1.7 M
  28. 安装大小:7.2 M
  29. Downloading packages:
  30. 警告:/var/cache/yum/x86_64/7/epel/packages/python2-pip-8.1.2-6.el7.noarch.rpm: V3 RSA/SHA256 Signature, 密钥 ID 352c64e5: NOKEY
  31. python2-pip-8.1.2-6.el7.noarch.rpm 的公钥尚未安装
  32. python2-pip-8.1.2-6.el7.noarch.rpm | 1.7 MB 00:00:03
  33. file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 检索密钥
  34. 导入 GPG key 0x352C64E5:
  35. 用户ID : "Fedora EPEL (7) <epel@fedoraproject.org>"
  36. 指纹 : 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
  37. 软件包 : epel-release-7-11.noarch (@extras)
  38. 来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
  39. Running transaction check
  40. Running transaction test
  41. Transaction test succeeded
  42. Running transaction
  43. 正在安装 : python2-pip-8.1.2-6.el7.noarch 1/1
  44. 验证中 : python2-pip-8.1.2-6.el7.noarch 1/1
  45. 已安装:
  46. python2-pip.noarch 0:8.1.2-6.el7
  47. 完毕!

8.3 pip install docker-compose

  1. [root@fangjiaxiaobai kafka]# pip install docker-compose
  2. Collecting docker-compose
  3. Downloading https://files.pythonhosted.org/packages/27/3c/6fcaa3b546ae8103c444149a1746f9a7043df7503e12bad318e8217312fb/docker_compose-1.21.2-py2.py3-none-any.whl (123kB)
  4. 100% |████████████████████████████████| 133kB 254kB/s
  5. Collecting PyYAML<4,>=3.10 (from docker-compose)
  6. Downloading https://files.pythonhosted.org/packages/4a/85/db5a2df477072b2902b0eb892feb37d88ac635d36245a72a6a69b23b383a/PyYAML-3.12.tar.gz (253kB)
  7. 100% |████████████████████████████████| 256kB 347kB/s
  8. Requirement already satisfied (use --upgrade to upgrade): backports.ssl-match-hostname>=3.5; python_version < "3.5" in /usr/lib/python2.7/site-packages (from docker-compose)
  9. Collecting six<2,>=1.3.0 (from docker-compose)
  10. Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
  11. Collecting enum34<2,>=1.0.4; python_version < "3.4" (from docker-compose)
  12. Downloading https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
  13. Collecting docker<4.0,>=3.3.0 (from docker-compose)
  14. Downloading https://files.pythonhosted.org/packages/31/01/41f727a549abd788eb91d0df4c801cb4c1f5227eee04a2621e13d7ed3e04/docker-3.3.0-py2.py3-none-any.whl (124kB)
  15. 100% |████████████████████████████████| 133kB 422kB/s
  16. Collecting texttable<0.10,>=0.9.0 (from docker-compose)
  17. Downloading https://files.pythonhosted.org/packages/02/e1/2565e6b842de7945af0555167d33acfc8a615584ef7abd30d1eae00a4d80/texttable-0.9.1.tar.gz
  18. Collecting dockerpty<0.5,>=0.4.1 (from docker-compose)
  19. Downloading https://files.pythonhosted.org/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz
  20. Requirement already satisfied (use --upgrade to upgrade): ipaddress>=1.0.16; python_version < "3.3" in /usr/lib/python2.7/site-packages (from docker-compose)
  21. Collecting requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1 (from docker-compose)
  22. Downloading https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl (88kB)
  23. 100% |████████████████████████████████| 92kB 384kB/s
  24. Collecting websocket-client<1.0,>=0.32.0 (from docker-compose)
  25. Downloading https://files.pythonhosted.org/packages/8a/a1/72ef9aa26cfe1a75cee09fc1957e4723add9de098c15719416a1ee89386b/websocket_client-0.48.0-py2.py3-none-any.whl (198kB)
  26. 100% |████████████████████████████████| 204kB 262kB/s
  27. Collecting docopt<0.7,>=0.6.1 (from docker-compose)
  28. Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
  29. Collecting jsonschema<3,>=2.5.1 (from docker-compose)
  30. Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
  31. Collecting cached-property<2,>=1.2.0 (from docker-compose)
  32. Downloading https://files.pythonhosted.org/packages/ca/21/d793828ce0bb01baa6bed307c68466829343cc93fccc055cfbc21f774959/cached_property-1.4.2-py2.py3-none-any.whl
  33. Collecting docker-pycreds>=0.2.3 (from docker<4.0,>=3.3.0->docker-compose)
  34. Downloading https://files.pythonhosted.org/packages/5c/b6/3a4ca03225f6e9a25cb47cd3c695d19b88df5928ab9310e64dec1eb3b4d1/docker_pycreds-0.2.3-py2.py3-none-any.whl
  35. Collecting urllib3<1.23,>=1.21.1 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  36. Downloading https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl (132kB)
  37. 100% |████████████████████████████████| 133kB 254kB/s
  38. Collecting idna<2.7,>=2.5 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  39. Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl (56kB)
  40. 100% |████████████████████████████████| 61kB 1.4MB/s
  41. Collecting chardet<3.1.0,>=3.0.2 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  42. Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
  43. 100% |████████████████████████████████| 143kB 257kB/s
  44. Collecting certifi>=2017.4.17 (from requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose)
  45. Downloading https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl (150kB)
  46. 100% |████████████████████████████████| 153kB 382kB/s
  47. Collecting functools32; python_version == "2.7" (from jsonschema<3,>=2.5.1->docker-compose)
  48. Downloading https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
  49. Installing collected packages: PyYAML, six, enum34, websocket-client, docker-pycreds, urllib3, idna, chardet, certifi, requests, docker, texttable, dockerpty, docopt, functools32, jsonschema, cached-property, docker-compose
  50. Running setup.py install for PyYAML ... done
  51. Found existing installation: chardet 2.2.1
  52. Uninstalling chardet-2.2.1:
  53. Successfully uninstalled chardet-2.2.1
  54. Running setup.py install for texttable ... done
  55. Running setup.py install for dockerpty ... done
  56. Running setup.py install for docopt ... done
  57. Running setup.py install for functools32 ... done
  58. Successfully installed PyYAML-3.12 cached-property-1.4.2 certifi-2018.4.16 chardet-3.0.4 docker-3.3.0 docker-compose-1.21.2 docker-pycreds-0.2.3 dockerpty-0.4.1 docopt-0.6.2 enum34-1.1.6 functools32-3.2.3.post2 idna-2.6 jsonschema-2.6.0 requests-2.18.4 six-1.11.0 texttable-0.9.1 urllib3-1.22 websocket-client-0.48.0
  59. You are using pip version 8.1.2, however version 10.0.1 is available.
  60. You should consider upgrading via the 'pip install --upgrade pip' command.

8.4 docker-compose version 查看是否安装成功

  1. [root@fangjiaxiaobai kafka]# docker-compose version
  2. docker-compose version 1.21.2, build a133471
  3. docker-py version: 3.3.0
  4. CPython version: 2.7.5
  5. OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017

最后

如果你觉得写的还不错,就关注下公众号呗,关注后,有点小礼物回赠给你。
你可以获得5000+电子书,java,springCloud,adroid,python等各种视频教程,IT类经典书籍,各种软件的安装及破解教程。
希望一块学习,一块进步!
20190901125800286.jpg

发表评论

表情:
评论列表 (有 0 条评论,200人围观)

还没有评论,来说两句吧...

相关阅读