我使用的是centos7,Docker的RPM版本是
[root@节点-6 ~]#每分钟转数-qa| grep停靠程序
一种通用的嵌入式系统
客户端-1.13.1-63.git94f4240.el7.centos.x86_64下载文件
x86_64 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01 - 01-
我从github下载了docker 1.13的源代码,发现与服务器上打印的日志不匹配。看来RHEL/CENT OS对他们提供的docker做了很多修改。我在google和centos rpm git上搜索了很多,但没有找到。
“centos版”docker是开源的吗?如果是,我在哪里可以找到源代码?
1条答案
按热度按时间nle07wnf1#
默认情况下,Docker是由CentOS-extras仓库提供的。下面是一些你可能需要熟悉的命令:
在普通示例(即没有导入任何无关/第三方存储库)上,输出应类似于以下内容
然后,为了获取(大多数情况下)特定rpm的源软件包,请尝试以下命令(假设您以前安装了yum-utils
下面是命令的输出
一旦文件下载完毕,您可以解压缩或安装rpm来访问内容。Midnight Commander还可以列出/查看/复制/解压缩大多数rpm存档到您选择的目录中。
文件应该已经安装在$HOME/rpmbuild SPECS文件夹将包含规格文件和SOURCES将包含源代码,已编译,以创建上述软件包。
在本例中,源代码文件位于$HOME/rpmbuild/SOURCES/b2f74b220126bddbae585cfe2406498ced3ae065.tar.gz中
用于创建rpm包的specfile也是一个有趣的东西。在这个文件中,你会发现编译前/后的特殊内容/修改,这些内容是包维护者或发布者所“专有”的。