yum下载docker安装包安装到离线机器的实例代码详解-创新互联

1.在可联网机器上,使用默认centosyum源

专注于为中小企业提供成都做网站、网站建设服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业东海免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了上千多家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。
[root@kole ~]# pwd
/root
[root@kole ~]# 
[root@kole ~]# cd docker/
[root@kole docker]# yum install --downloadonly --downloaddir=/root/docker docker
[root@kole docker]# ll
total 38800
-rw-r--r-- 1 root root 35780 Oct 2 00:52 atomic-registries-1.22.1-25.git5a342e3.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 36688 Aug 22 03:48 container-selinux-2.68-1.el7.noarch.rpm
-rw-r--r-- 1 root root 35364 Aug 22 03:48 container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch.rpm
-rw-r--r-- 1 root root 17138052 Oct 2 00:52 docker-1.13.1-75.git8633870.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 4013036 Oct 2 00:52 docker-client-1.13.1-75.git8633870.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 95016 Oct 2 00:52 docker-common-1.13.1-75.git8633870.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 94468 Sep 28 19:33 libgudev1-219-57.el7_5.3.x86_64.rpm
-rw-r--r-- 1 root root 165680 Apr 26 2018 libselinux-2.5-12.el7.x86_64.rpm
-rw-r--r-- 1 root root 240876 Apr 26 2018 libselinux-python-2.5-12.el7.x86_64.rpm
-rw-r--r-- 1 root root 154984 Apr 26 2018 libselinux-utils-2.5-12.el7.x86_64.rpm
-rw-r--r-- 1 root root 153596 Apr 25 2018 libsemanage-2.5-11.el7.x86_64.rpm
-rw-r--r-- 1 root root 114804 Apr 25 2018 libsemanage-python-2.5-11.el7.x86_64.rpm
-rw-r--r-- 1 root root 303736 Apr 25 2018 libsepol-2.5-8.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 56068 Jan 30 2015 libyaml-0.1.4-11.el7_0.x86_64.rpm
-rw-r--r-- 1 root root 100668 Apr 25 2018 lz4-1.7.5-2.el7.x86_64.rpm
-rw-r--r-- 1 root root 1109112 Mar 9 2018 oci-register-machine-0-6.git2b44233.el7.x86_64.rpm
-rw-r--r-- 1 root root 33860 Aug 22 03:48 oci-systemd-hook-0.1.17-2.git83283a0.el7.x86_64.rpm
-rw-r--r-- 1 root root 32440 Mar 9 2018 oci-umount-2.3.3-3.gite3c9055.el7.x86_64.rpm
-rw-r--r-- 1 root root 887548 Apr 25 2018 policycoreutils-2.5-22.el7.x86_64.rpm
-rw-r--r-- 1 root root 464972 Apr 25 2018 policycoreutils-python-2.5-22.el7.x86_64.rpm
-rw-r--r-- 1 root root 18692 Nov 29 2017 python-pytoml-0.1.14-1.git7dea353.el7.noarch.rpm
-rw-r--r-- 1 root root 156952 Jul 4 2014 PyYAML-3.10-11.el7.x86_64.rpm
-rw-r--r-- 1 root root 463888 Aug 20 22:19 selinux-policy-3.13.1-192.el7_5.6.noarch.rpm
-rw-r--r-- 1 root root 6881288 Aug 20 22:20 selinux-policy-targeted-3.13.1-192.el7_5.6.noarch.rpm
-rw-r--r-- 1 root root 634220 Apr 25 2018 setools-libs-3.3.8-2.el7.x86_64.rpm
-rw-r--r-- 1 root root 17100 Jul 18 01:18 skopeo-containers-0.1.31-1.dev.gitae64ff7.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 200128 Apr 25 2018 subscription-manager-rhsm-certificates-1.20.11-1.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 5278020 Sep 28 19:34 systemd-219-57.el7_5.3.x86_64.rpm
-rw-r--r-- 1 root root 411908 Sep 28 19:34 systemd-libs-219-57.el7_5.3.x86_64.rpm
-rw-r--r-- 1 root root 131556 Sep 28 19:34 systemd-python-219-57.el7_5.3.x86_64.rpm
-rw-r--r-- 1 root root 81520 Sep 28 19:34 systemd-sysv-219-57.el7_5.3.x86_64.rpm
[root@kole docker]# createrepo .
[root@kole ~]# tar -czvf docker.tar.gz docker 

网站名称:yum下载docker安装包安装到离线机器的实例代码详解-创新互联
本文网址:http://azwzsj.com/article/dihsdh.html