真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

如何使用yum離線安裝docker-創(chuàng)新互聯(lián)

這篇文章主要介紹了如何使用yum離線安裝docker,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

在三亞等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站建設(shè)、成都網(wǎng)站設(shè)計 網(wǎng)站設(shè)計制作按需規(guī)劃網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站制作,網(wǎng)絡(luò)營銷推廣,外貿(mào)營銷網(wǎng)站建設(shè),三亞網(wǎng)站建設(shè)費(fèi)用合理。

使用yum可以進(jìn)行連通依賴關(guān)系一起進(jìn)行安裝,而是用–downloadonly –downloaddir選項則可以不進(jìn)行安裝,而將rpm連同依賴下載到本地進(jìn)行安裝。

下載及安裝方式

使用yum安裝centos或者rhel等自帶的docker,可以使用yum install docker. 而下載到本地后使用安裝文件的方式可以使用如下方式

如何使用yum離線安裝docker

下載docker相關(guān)的rpm文件并安裝

使用下載rmp并安裝的方式進(jìn)行docker的安裝

如何使用yum離線安裝docker

downloaddir指定的文件夾如果事前不存在,在執(zhí)行的時候會生成一個。

安裝日志

如何使用yum離線安裝docker

downloaddir指定的文件夾如果事前不存在,在執(zhí)行的時候會生成一個。

[root@openshift ~]# yum install --downloadonly --downloaddir=/tmp/docker docker
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.cn99.com
 * updates: mirror.lzu.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package docker.x86_64 2:1.13.1-53.git774336d.el7.centos will be installed
--> Processing Dependency: docker-common = 2:1.13.1-53.git774336d.el7.centos for package: 2:docker-1.13.1-53.git774336d.el7.centos.x86_64
--> Processing Dependency: docker-client = 2:1.13.1-53.git774336d.el7.centos for package: 2:docker-1.13.1-53.git774336d.el7.centos.x86_64
--> Running transaction check
---> Package docker-client.x86_64 2:1.13.1-53.git774336d.el7.centos will be installed
---> Package docker-common.x86_64 2:1.13.1-53.git774336d.el7.centos will be installed
--> Processing Dependency: skopeo-containers >= 1:0.1.26-2 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> Processing Dependency: oci-umount >= 2:2.0.0-1 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> Processing Dependency: oci-systemd-hook >= 1:0.1.4-9 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> Processing Dependency: oci-register-machine >= 1:0-5.13 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> Processing Dependency: container-storage-setup >= 0.7.0-1 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> Processing Dependency: container-selinux >= 2:2.21-2 for package: 2:docker-common-1.13.1-53.git774336d.el7.centos.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.42-1.gitad8f0f7.el7 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.42-1.gitad8f0f7.el7.noarch
---> Package container-storage-setup.noarch 0:0.8.0-3.git1d27ecf.el7 will be installed
---> Package oci-register-machine.x86_64 1:0-6.git2b44233.el7 will be installed
---> Package oci-systemd-hook.x86_64 1:0.1.15-2.gitc04483d.el7 will be installed
--> Processing Dependency: libyajl.so.2()(64bit) for package: 1:oci-systemd-hook-0.1.15-2.gitc04483d.el7.x86_64
---> Package oci-umount.x86_64 2:2.3.3-3.gite3c9055.el7 will be installed
---> Package skopeo-containers.x86_64 1:0.1.28-1.git0270e56.el7 will be installed
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-17.1.el7 will be installed
--> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: libcgroup for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-17.1.el7.x86_64
---> Package yajl.x86_64 0:2.0.4-4.el7 will be installed
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.7.6-3.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-13.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-8.el7 will be installed
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================
 Package                Arch         Version                     Repository      Size
========================================================================================================================================
Installing:
 docker                x86_64        2:1.13.1-53.git774336d.el7.centos        extras        16 M
Installing for dependencies:
 audit-libs-python           x86_64        2.7.6-3.el7                   base         73 k
 checkpolicy              x86_64        2.5-4.el7                    base         290 k
 container-selinux           noarch        2:2.42-1.gitad8f0f7.el7             extras        32 k
 container-storage-setup        noarch        0.8.0-3.git1d27ecf.el7              extras        33 k
 docker-client             x86_64        2:1.13.1-53.git774336d.el7.centos        extras        3.7 M
 docker-common             x86_64        2:1.13.1-53.git774336d.el7.centos        extras        86 k
 libcgroup               x86_64        0.41-13.el7                   base         65 k
 libsemanage-python          x86_64        2.5-8.el7                    base         104 k
 oci-register-machine         x86_64        1:0-6.git2b44233.el7               extras        1.1 M
 oci-systemd-hook           x86_64        1:0.1.15-2.gitc04483d.el7            extras        33 k
 oci-umount              x86_64        2:2.3.3-3.gite3c9055.el7             extras        32 k
 policycoreutils-python        x86_64        2.5-17.1.el7                   base         446 k
 python-IPy              noarch        0.75-6.el7                    base         32 k
 setools-libs             x86_64        3.3.8-1.1.el7                  base         612 k
 skopeo-containers           x86_64        1:0.1.28-1.git0270e56.el7            extras        13 k
 yajl                 x86_64        2.0.4-4.el7                   base         39 k
Transaction Summary
========================================================================================================================================
Install 1 Package (+16 Dependent packages)
Total download size: 23 M
Installed size: 77 M
Background downloading packages, then exiting:
warning: /tmp/docker/container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch.rpm.1316.tmp: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Public key for container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch.rpm.1316.tmp is not installed
(1/17): container-storage-setup-0.8.0-3.git1d27ecf.el7.noarch.rpm                        | 33 kB 00:00:00   
Public key for audit-libs-python-2.7.6-3.el7.x86_64.rpm.1316.tmp is not installed           ] 0.0 B/s | 93 kB --:--:-- ETA 
(2/17): audit-libs-python-2.7.6-3.el7.x86_64.rpm                                 | 73 kB 00:00:00   
(3/17): docker-common-1.13.1-53.git774336d.el7.centos.x86_64.rpm                         | 86 kB 00:00:00   
(4/17): libcgroup-0.41-13.el7.x86_64.rpm                                     | 65 kB 00:00:00   
(5/17): libsemanage-python-2.5-8.el7.x86_64.rpm                                 | 104 kB 00:00:00   
(6/17): docker-client-1.13.1-53.git774336d.el7.centos.x86_64.rpm                         | 3.7 MB 00:00:01   
(7/17): oci-systemd-hook-0.1.15-2.gitc04483d.el7.x86_64.rpm                           | 33 kB 00:00:00   
(8/17): oci-register-machine-0-6.git2b44233.el7.x86_64.rpm                            | 1.1 MB 00:00:00   
(9/17): oci-umount-2.3.3-3.gite3c9055.el7.x86_64.rpm                               | 32 kB 00:00:00   
(10/17): policycoreutils-python-2.5-17.1.el7.x86_64.rpm                             | 446 kB 00:00:00   
(11/17): setools-libs-3.3.8-1.1.el7.x86_64.rpm                                  | 612 kB 00:00:00   
(12/17): skopeo-containers-0.1.28-1.git0270e56.el7.x86_64.rpm                          | 13 kB 00:00:00   
(13/17): yajl-2.0.4-4.el7.x86_64.rpm                                       | 39 kB 00:00:00   
(14/17): checkpolicy-2.5-4.el7.x86_64.rpm                                    | 290 kB 00:00:06   
(15/17): docker-1.13.1-53.git774336d.el7.centos.x86_64.rpm                            | 16 MB 00:00:08   
(16/17): container-selinux-2.42-1.gitad8f0f7.el7.noarch.rpm                           | 32 kB 00:00:10   
(17/17): python-IPy-0.75-6.el7.noarch.rpm                                    | 32 kB 00:00:15   
----------------------------------------------------------------------------------------------------------------------------------------
Total                                                  1.2 MB/s | 23 MB 00:00:18   
exiting because "Download Only" specified
[root@openshift ~]#

確認(rèn)下載的rpm文件

[root@openshift ~]# cd /tmp/docker
[root@openshift docker]# ls |wc -l
17
[root@openshift docker]#

如何使用yum離線安裝docker

[root@openshift docker]# rpm -Uvh *.rpm
warning: audit-libs-python-2.7.6-3.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
Preparing...             ################################# [100%]
Updating / installing...
  1:yajl-2.0.4-4.el7         ################################# [ 6%]
  2:oci-systemd-hook-1:0.1.15-2.gitc0################################# [ 12%]
  3:oci-umount-2:2.3.3-3.gite3c9055.e################################# [ 18%]
  4:skopeo-containers-1:0.1.28-1.git0################################# [ 24%]
  5:setools-libs-3.3.8-1.1.el7    ################################# [ 29%]
  6:python-IPy-0.75-6.el7      ################################# [ 35%]
  7:oci-register-machine-1:0-6.git2b4################################# [ 41%]
  8:libsemanage-python-2.5-8.el7   ################################# [ 47%]
  9:libcgroup-0.41-13.el7      ################################# [ 53%]
 10:container-storage-setup-0.8.0-3.g################################# [ 59%]
 11:checkpolicy-2.5-4.el7      ################################# [ 65%]
 12:audit-libs-python-2.7.6-3.el7  ################################# [ 71%]
 13:policycoreutils-python-2.5-17.1.e################################# [ 76%]
 14:container-selinux-2:2.42-1.gitad8################################# [ 82%]
 15:docker-common-2:1.13.1-53.git7743################################# [ 88%]
 16:docker-client-2:1.13.1-53.git7743################################# [ 94%]
 17:docker-2:1.13.1-53.git774336d.el7################################# [100%]
[root@openshift docker]#

docker啟動

[root@openshift docker]# systemctl start docker
[root@openshift docker]# docker version
Client:
 Version:     1.13.1
 API version:   1.26
 Package version: 
 Go version:   go1.8.3
 Git commit:   774336d/1.13.1
 Built:      Wed Mar 7 17:06:16 2018
 OS/Arch:     linux/amd64
Server:
 Version:     1.13.1
 API version:   1.26 (minimum version 1.12)
 Package version: 
 Go version:   go1.8.3
 Git commit:   774336d/1.13.1
 Built:      Wed Mar 7 17:06:16 2018
 OS/Arch:     linux/amd64
 Experimental:  false
[root@openshift docker]#

感謝你能夠認(rèn)真閱讀完這篇文章,希望小編分享的“如何使用yum離線安裝docker”這篇文章對大家有幫助,同時也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!


當(dāng)前標(biāo)題:如何使用yum離線安裝docker-創(chuàng)新互聯(lián)
鏈接地址:http://weahome.cn/article/jcgod.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部