博客列表 >配置Pouch镜像

配置Pouch镜像

哈
原创
2022年03月09日 15:52:21477浏览

镜像下载、域名解析、时间同步请点击 阿里云开源镜像站

一、pouch镜像简介

阿里巴巴正式开源了基于Apache 2.0协议的容器技术Pouch。Pouch是一款轻量级的容器技术,拥有快速高效、可移植性高、资源占用少等特性,主要帮助阿里更快的做到内部业务的交付,同时提高超大规模下数据中心的物理资源利用率。

二、pouch镜像配置方法(基于CentOS 7系统配置)

1、查看主机名

  1. [root@centos ~]# hostnamectl
  2. Static hostname: centos
  3. Icon name: computer-vm
  4. Chassis: vm
  5. Machine ID: f6fc8fb7991c4c518238af7c75f16046
  6. Boot ID: a5342490e7fd4891978ea3b2e7e0aaf1
  7. Virtualization: vmware
  8. Operating System: CentOS Linux 7 (Core)
  9. CPE OS Name: cpe:/o:centos:centos:7
  10. Kernel: Linux 3.10.0-1160.el7.x86_64
  11. Architecture: x86-64
  12. [root@centos ~]#

2、添加镜像文件

  1. [root@centos ~]# vim /etc/yum.repos.d/pouch-centos7.repo
  2. [root@centos ~]# cat /etc/yum.repos.d/pouch-centos7.repo
  3. [pouch-stable]
  4. name=Pouch Stable - $basearch
  5. baseurl=http://mirrors.aliyun.com/opsx/pouch/linux/centos/7/$basearch/stable
  6. enabled=1
  7. gpgcheck=1
  8. gpgkey=http://mirrors.aliyun.com/opsx/pouch/linux/centos/gpg
  9. [pouch-test]
  10. name=Pouch Test - $basearch
  11. baseurl=http://mirrors.aliyun.com/opsx/pouch/linux/centos/7/$basearch/test
  12. enabled=0
  13. gpgcheck=1
  14. gpgkey=http://mirrors.aliyun.com/opsx/pouch/linux/centos/gpg
  15. [root@centos ~]#

3、更新YUM源

将软件包信息提前在本地索引缓存 ,用来提高搜索安装软件的速度,建议执行这个命令可以提升yum安装的速度

  1. [root@centos ~]# yum clean all
  2. Loaded plugins: fastestmirror
  3. Cleaning repos: base extras pouch-stable updates
  4. Cleaning up list of fastest mirrors
  5. Other repos take up 145 M of disk space (use --verbose for details)
  6. [root@centos ~]# yum makecache
  7. Loaded plugins: fastestmirror
  8. Determining fastest mirrors
  9. * base: mirrors.aliyun.com
  10. * extras: mirrors.aliyun.com
  11. * updates: mirrors.aliyun.com
  12. base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 pouch-stable | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/13): base/7/x86_64/group_gz | 153 kB 00:00:00 (2/13): base/7/x86_64/filelists_db | 7.2 MB 00:00:01 (3/13): extras/7/x86_64/primary_db | 243 kB 00:00:00 (4/13): extras/7/x86_64/filelists_db | 259 kB 00:00:00 (5/13): pouch-stable/x86_64/primary_db | 8.0 kB 00:00:00 (6/13): extras/7/x86_64/other_db | 145 kB 00:00:00 (7/13): pouch-stable/x86_64/other_db | 1.4 kB 00:00:00 (8/13): pouch-stable/x86_64/filelists_db | 3.1 kB 00:00:00 (9/13): base/7/x86_64/other_db | 2.6 MB 00:00:00 (10/13): base/7/x86_64/primary_db | 6.1 MB 00:00:02 (11/13): updates/7/x86_64/filelists_db | 7.0 MB 00:00:01 (12/13): updates/7/x86_64/other_db | 903 kB 00:00:00 (13/13): updates/7/x86_64/primary_db | 13 MB 00:00:02 Metadata Cache Created
  13. [root@centos ~]#

4、安装pouch

  1. [root@centos ~]# yum install pouch
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. * base: mirrors.aliyun.com
  5. * extras: mirrors.aliyun.com
  6. * updates: mirrors.aliyun.com
  7. Resolving Dependencies
  8. --> Running transaction check
  9. ---> Package pouch.x86_64 0:1.3.0-1.el7 will be installed
  10. --> Processing Dependency: pam-devel for package: pouch-1.3.0-1.el7.x86_64
  11. --> Processing Dependency: fuse-devel for package: pouch-1.3.0-1.el7.x86_64
  12. --> Running transaction check
  13. ---> Package fuse-devel.x86_64 0:2.9.2-11.el7 will be installed
  14. ---> Package pam-devel.x86_64 0:1.1.8-23.el7 will be installed
  15. --> Finished Dependency Resolution
  16. Dependencies Resolved
  17. ======================================================================================================================== Package Arch Version Repository Size
  18. ========================================================================================================================Installing:
  19. pouch x86_64 1.3.0-1.el7 pouch-stable 44 M
  20. Installing for dependencies:
  21. fuse-devel x86_64 2.9.2-11.el7 base 37 k
  22. pam-devel x86_64 1.1.8-23.el7 base 185 k
  23. Transaction Summary
  24. ========================================================================================================================Install 1 Package (+2 Dependent packages)
  25. Total download size: 45 M
  26. Installed size: 146 M
  27. Is this ok [y/d/N]: y
  28. Downloading packages:
  29. (1/3): fuse-devel-2.9.2-11.el7.x86_64.rpm | 37 kB 00:00:00 (2/3): pam-devel-1.1.8-23.el7.x86_64.rpm | 185 kB 00:00:00 warning: /var/cache/yum/x86_64/7/pouch-stable/packages/pouch-1.3.0-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 439ae9ec: NOKEY
  30. Public key for pouch-1.3.0-1.el7.x86_64.rpm is not installed
  31. (3/3): pouch-1.3.0-1.el7.x86_64.rpm | 44 MB 00:00:07 ------------------------------------------------------------------------------------------------------------------------Total 5.7 MB/s | 45 MB 00:00:07 Retrieving key from http://mirrors.aliyun.com/opsx/pouch/linux/centos/gpg
  32. Importing GPG key 0x439AE9EC:
  33. Userid : "Pouch Release <pouch-dev@list.alibaba-inc.com>"
  34. Fingerprint: b615 ddd7 90c7 0912 582d dc2d d7ae a5ed 439a e9ec
  35. From : http://mirrors.aliyun.com/opsx/pouch/linux/centos/gpg
  36. Is this ok [y/N]:y
  37. 安装过程省略
  38. Installed:
  39. pouch.x86_64 0:1.3.0-1.el7
  40. Dependency Installed:
  41. fuse-devel.x86_64 0:2.9.2-11.el7 pam-devel.x86_64 0:1.1.8-23.el7
  42. Complete!
  43. [root@centos ~]# rpm -qa | grep pouch
  44. pouch-1.3.0-1.el7.x86_64
  45. [root@centos ~]#

file

本文转自:https://blog.csdn.net/qq_45392321/article/details/122115678

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议