低质量的社交,不如高质量的独处

Docker yum 安装

 

 

 

[liwm@Eren ~]$ sudo su
[root@Eren liwm]# yum install -y docker
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-
          : manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
adobe-linux-x86_64                                       | 2.9 kB     00:00     
base                                                     | 3.6 kB     00:00     
epel/x86_64/metalink                                     | 5.7 kB     00:00     
epel                                                     | 4.3 kB     00:00     
extras                                                   | 3.4 kB     00:00     
nux-dextop                                               | 2.9 kB     00:00     
updates                                                  | 3.4 kB     00:00     
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: ftp.cuhk.edu.hk
 * extras: mirrors.aliyun.com
 * nux-dextop: mirror.li.nux.ro
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 docker.x86_64.2.1.12.6-55.gitc4618fb.el7.centos 将被 安装
--> 正在处理依赖关系 docker-common = 2:1.12.6-55.gitc4618fb.el7.centos,它被软件包 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在处理依赖关系 docker-client = 2:1.12.6-55.gitc4618fb.el7.centos,它被软件包 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 docker-client.x86_64.2.1.12.6-55.gitc4618fb.el7.centos 将被 安装
---> 软件包 docker-common.x86_64.2.1.12.6-55.gitc4618fb.el7.centos 将被 安装
--> 正在处理依赖关系 oci-umount = 2:1.12.6-55.gitc4618fb.el7.centos,它被软件包 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-systemd-hook >= 1:0.1.4-9,它被软件包 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在处理依赖关系 oci-register-machine >= 1:0-3.10,它被软件包 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在处理依赖关系 container-storage-setup >= 0.3.0-1,它被软件包 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在处理依赖关系 container-selinux >= 2:2.21-2,它被软件包 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在处理依赖关系 skopeo-containers,它被软件包 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 container-selinux.noarch.2.2.21-2.gitba103ac.el7 将被 安装
---> 软件包 container-storage-setup.noarch.0.0.6.0-1.gite67c964.el7 将被 安装
---> 软件包 oci-register-machine.x86_64.1.0-3.11.1.gitdd0daef.el7 将被 安装
---> 软件包 oci-systemd-hook.x86_64.1.0.1.12-1.git1e84754.el7 将被 安装
---> 软件包 oci-umount.x86_64.2.1.12.6-55.gitc4618fb.el7.centos 将被 安装
---> 软件包 skopeo-containers.x86_64.1.0.1.23-1.git1bbd87f.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

================================================================================
 Package                 架构   版本                               源      大小
================================================================================
正在安装:
 docker                  x86_64 2:1.12.6-55.gitc4618fb.el7.centos  extras  15 M
为依赖而安装:
 container-selinux       noarch 2:2.21-2.gitba103ac.el7            extras  29 k
 container-storage-setup noarch 0.6.0-1.gite67c964.el7             extras  32 k
 docker-client           x86_64 2:1.12.6-55.gitc4618fb.el7.centos  extras 3.4 M
 docker-common           x86_64 2:1.12.6-55.gitc4618fb.el7.centos  extras  79 k
 oci-register-machine    x86_64 1:0-3.11.1.gitdd0daef.el7          extras 1.0 M
 oci-systemd-hook        x86_64 1:0.1.12-1.git1e84754.el7          extras  31 k
 oci-umount              x86_64 2:1.12.6-55.gitc4618fb.el7.centos  extras  99 k
 skopeo-containers       x86_64 1:0.1.23-1.git1bbd87f.el7          extras 8.4 k

事务概要
================================================================================
安装  1 软件包 (+8 依赖软件包)

总下载量:19 M
安装大小:66 M
Downloading packages:
(1/9): container-selinux-2.21-2.gitba103ac.el7.noarch.rpm  |  29 kB   00:00     
(2/9): container-storage-setup-0.6.0-1.gite67c964.el7.noar |  32 kB   00:00     
(3/9): docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_6 | 3.4 MB   00:01     
(4/9): docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_6 |  79 kB   00:00     
(5/9): oci-register-machine-0-3.11.1.gitdd0daef.el7.x86_64 | 1.0 MB   00:00     
(6/9): oci-systemd-hook-0.1.12-1.git1e84754.el7.x86_64.rpm |  31 kB   00:00     
(7/9): oci-umount-1.12.6-55.gitc4618fb.el7.centos.x86_64.r |  99 kB   00:00     
(8/9): skopeo-containers-0.1.23-1.git1bbd87f.el7.x86_64.rp | 8.4 kB   00:00     
(9/9): docker-1.12.6-55.gitc4618fb.el7.centos.x86_64.rpm   |  15 MB   00:03     
--------------------------------------------------------------------------------
总计                                               5.8 MB/s |  19 MB  00:03     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : 1:oci-systemd-hook-0.1.12-1.git1e84754.el7.x86_64           1/9
  正在安装    : 2:oci-umount-1.12.6-55.gitc4618fb.el7.centos.x86_64         2/9
  正在安装    : 1:skopeo-containers-0.1.23-1.git1bbd87f.el7.x86_64          3/9
  正在安装    : container-storage-setup-0.6.0-1.gite67c964.el7.noarch       4/9
  正在安装    : 1:oci-register-machine-0-3.11.1.gitdd0daef.el7.x86_64       5/9
  正在安装    : 2:container-selinux-2.21-2.gitba103ac.el7.noarch            6/9
setsebool:  SELinux is disabled.
  正在安装    : 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64      7/9
  正在安装    : 2:docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_64      8/9
  正在安装    : 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64             9/9
  验证中      : 2:docker-1.12.6-55.gitc4618fb.el7.centos.x86_64             1/9
  验证中      : 2:container-selinux-2.21-2.gitba103ac.el7.noarch            2/9
  验证中      : 1:oci-register-machine-0-3.11.1.gitdd0daef.el7.x86_64       3/9
  验证中      : container-storage-setup-0.6.0-1.gite67c964.el7.noarch       4/9
  验证中      : 2:docker-common-1.12.6-55.gitc4618fb.el7.centos.x86_64      5/9
  验证中      : 2:docker-client-1.12.6-55.gitc4618fb.el7.centos.x86_64      6/9
  验证中      : 1:skopeo-containers-0.1.23-1.git1bbd87f.el7.x86_64          7/9
  验证中      : 2:oci-umount-1.12.6-55.gitc4618fb.el7.centos.x86_64         8/9
  验证中      : 1:oci-systemd-hook-0.1.12-1.git1e84754.el7.x86_64           9/9

已安装:
  docker.x86_64 2:1.12.6-55.gitc4618fb.el7.centos                               

作为依赖被安装:
  container-selinux.noarch 2:2.21-2.gitba103ac.el7                              
  container-storage-setup.noarch 0:0.6.0-1.gite67c964.el7                       
  docker-client.x86_64 2:1.12.6-55.gitc4618fb.el7.centos                        
  docker-common.x86_64 2:1.12.6-55.gitc4618fb.el7.centos                        
  oci-register-machine.x86_64 1:0-3.11.1.gitdd0daef.el7                         
  oci-systemd-hook.x86_64 1:0.1.12-1.git1e84754.el7                             
  oci-umount.x86_64 2:1.12.6-55.gitc4618fb.el7.centos                           
  skopeo-containers.x86_64 1:0.1.23-1.git1bbd87f.el7                            

完毕!

 

添加阿里云加速

 

--registry-mirror=https://0bb06s1q.mirror.aliyuncs.com

 

# /etc/sysconfig/docker
# Modify these options if you want to change the way the docker daemon runs
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --registry-mirror=https://0bb06s1q.mirror.aliyuncs.com'

if [ -z "${DOCKER_CERT_PATH}" ]; then
    DOCKER_CERT_PATH=/etc/docker
fi

# Do not add registries in this file anymore. Use /etc/containers/registries.conf
# from the atomic-registries package.
#

# docker-latest daemon can be used by starting the docker-latest unitfile.
# To use docker-latest client, uncomment below lines
#DOCKERBINARY=/usr/bin/docker-latest
#DOCKERDBINARY=/usr/bin/dockerd-latest
#DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
#DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest

 

posted @ 2017-10-08 21:44  Eren.li  阅读(1580)  评论(0编辑  收藏  举报
liweiming0611@163.com
等待有三大特征:
清晰的目的、努力达成的过程、充满不确定性的结果
因上努力,果上随缘
求其上,得其中;求其中,得其下;求其下,无所得