2016-09-19 133 views
2

目的:在離線模式下相關性錯誤搬運工1.12 7

  • 我而在RHEL 7安裝搬運工1.12有相關性錯誤安裝在RHEL 7最新泊塢窗(V1.12),和我 試圖在因特網中查找這些依賴項,但未發現那些 依賴項,但selinux-policy rpm

enter image description here

  • 我試過後百勝更新安裝。
  • 我發現互聯網上泊塢窗1.7的依賴關係,安裝在RHEL 6.7 但在RHEL不能讓同樣的方式爲搬運工1.12 7

我想下面的東西

  • 安裝搬運工1.12當系統(測試機)連接到互聯網和安裝docker 1.12後,所有依賴關係將緩存在/var/cahce/yum/rhel7/位置並搜索上述依賴關係,但未找到。
  • 裝箱本地yum軟件庫和安裝ISO文件,然後做百勝更新 並試圖安裝碼頭工人,但仍給予同樣的依賴性錯誤。

  • 我不知道上面的步驟是正確的還是正確的程序,我只是累了,但沒有任何工作。

    我的生產環境沒有互聯網連接,只有內聯網連接。

    • 有人可以提供或指導我如何解決這個問題,以及如何解決這類問題?

在此先感謝!

回答

0

我有點驚訝,至少在這裏找不到非docker包,因爲它們來自標準的CentOS倉庫。一般來說,我會使用類似於:

# yum provides "*/<filename>" 

例如,

# yum provides "*/libsystemd.so.*" 

此,如果你沒有在目標系統上配置的存儲庫顯然不會幫助,但它很容易碰到一個流浪者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 

在煤礦,這給:

[[email protected] ~]$ 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 

運行該上面給出的命令向你顯示例如libsystemd.so*systemd-libs封裝,可在「更新」回購..看到http://mirror.centos.org/centos/7/updates/x86_64/Packages/

0

試試這個命令: 百勝安裝的libtool-ltdl 這個重新運行安裝命令後。 如果您有「docker-ce」存儲庫,這將自動完成。 祝你好運!