[英]dependency error while installing docker 1.12 in rhel 7
目標:在離線模式下的rhel 7中安裝最新的docker(v1.12)
我嘗試了下面的事情
創建了本地yum存儲庫並裝入了iso文件,然后進行了yum更新並嘗試安裝docker,但仍然給出相同的依存關系錯誤。
我不確定上述步驟是正確的還是正確的程序,我只是累了,但沒有任何反應。
我的生產環境沒有Internet連接,並且僅具有Intranet連接。
提前致謝!
我很驚訝您在這里至少找不到非docker軟件包,因為它們來自標准CentOS存儲庫。 一般而言,我會使用類似:
# yum provides "*/<filename>"
例如
# 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
命令給yum provides
我上面給出的命令,例如libsystemd.so*
在systemd-libs
包中,並且在“更新”存儲systemd-libs
可用。請參閱http://mirror.centos.org/centos/7/updates/ x86_64的/封裝/
嘗試以下命令:yum install libtool-ltdl在重新運行安裝命令之后。 如果您有“ docker-ce”存儲庫,這將自動完成。 祝好運!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.