目标:在离线模式下在rhel 7中安装最新的泊坞窗(v1.12)
我尝试了以下内容
Crated local yum repo and mounted iso file然后 yum update 并试图安装docker但仍然给出相同的依赖项错误。
我不确定上述步骤是如何正确或正确的程序,我只是累了,但任何事情都没有用。
我的生产环境没有互联网连接,只有内网连接。
提前致谢!
答案 0 :(得分:0)
我很惊讶你至少找不到这里的非泊坞包,因为它们来自标准的CentOS存储库。一般来说,我会使用类似的东西:
# yum provides "*/<filename>"
e.g。
# yum provides "*/libsystemd.so.*"
如果您没有在目标系统上配置存储库,这显然不会有帮助,但运行Vagrant VM并查看其中所需的内容非常容易。
$ 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
包中,可在&#34;更新&#34; repo ..见http://mirror.centos.org/centos/7/updates/x86_64/Packages/
答案 1 :(得分:0)
尝试此命令: yum install libtool-ltdl 在此重新运行安装命令之后。 如果你有“docker-ce”存储库,这将自动完成。 祝你好运!