在rhel 7中安装Docker 1.12时出现依赖性错误
目标:在离线模式下在rhel 7中安装最新的Docker(v1.12)
- 在rhel 7中安装Docker 1.12时出现了依赖错误,我试图在Internet上查找这些依赖关系,但除了selinux-policy rpm之外,没有发现这些依赖关系。
- 我尝试在yum更新后安装。
- 我发现互联网上的docker 1.7的依赖关系,安装在rhel 6.7中,但是不能在rhel 7中为Docker 1.12创build相同的方式
我尝试了下面的东西
- 当系统(testing机器)连接到互联网和安装docker 1.12后,安装docker 1.12所有的依赖关系将caching在/ var / cahce / yum / rhel7 / location中,并且search上面的依赖但是没有find。
-
Crated本地yum回购和挂载ISO文件,然后做了百胜升级,并试图安装docker,但仍然给予相同的依赖性错误。
-
我不知道上面的步骤是正确的还是正确的程序,我只是累了,但没有任何工作。
我的生产环境没有互联网连接,只有内联网连接。
- 有人可以提供或指导我如何解决这个问题,以及如何解决这类问题?
提前致谢!
我有点惊讶,因为这些包来自标准的CentOS仓库,至less找不到非docker包。 一般来说,我会使用类似于:
# yum provides "*/<filename>"
例如
# yum provides "*/libsystemd.so.*"
如果你没有在你的目标系统上configuration仓库,这显然没有帮助,但运行Vagrant虚拟机很容易,看看有什么需要。
$ vagrant init bento/centos-7.2 $ vagrant ssh
然后按照https://docs.docker.com/engine/installation/linux/centos/上的文档:
$ sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7/ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF
并安装它:
$ sudo yum install docker-engine
在我的,这给:
[vagrant@localhost ~]$ sudo yum install docker-engine Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.ukhost4u.com * extras: mirror.vorboss.net * updates: mirror.vorboss.net Resolving Dependencies --> Running transaction check ---> Package docker-engine.x86_64 0:1.12.1-1.el7.centos will be installed --> Processing Dependency: docker-engine-selinux >= 1.12.1-1.el7.centos for package: docker-engine-1.12.1-1.el7.centos.x86_64 --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.1-1.el7.centos.x86_64 --> Processing Dependency: libltdl.so.7()(64bit) for package: docker-engine-1.12.1-1.el7.centos.x86_64 --> Running transaction check ---> Package docker-engine-selinux.noarch 0:1.12.1-1.el7.centos will be installed ---> Package libseccomp.x86_64 0:2.2.1-1.el7 will be installed ---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================ Package Arch Version Repository Size ============================================================================================================ Installing: docker-engine x86_64 1.12.1-1.el7.centos dockerrepo 19 M Installing for dependencies: docker-engine-selinux noarch 1.12.1-1.el7.centos dockerrepo 28 k libseccomp x86_64 2.2.1-1.el7 base 49 k libtool-ltdl x86_64 2.4.2-21.el7_2 updates 49 k Transaction Summary ============================================================================================================ Install 1 Package (+3 Dependent packages) Total download size: 19 M Installed size: 79 M
运行yum provides
命令,我给上面显示,例如, libsystemd.so*
在systemd-libs
包中,并在“更新”回购中可用..请参阅http://mirror.centos.org/centos/7/updates/ x86_64的/封装/