zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Atitit alldiaryindex v1 t717 目录 1. Fix 1 2. Diary detail 1 2.1. Diary 1987---2016.12 1 2.2. Diary20
    Atitit web httphandler的实现 java python node.js c# net php 目录 1.1. Java 过滤器 servelet 1 1.2. Python的
    Atitit 网关协议cgi wsgi fcgi fastcgi 目录 1.1. CGI(common gateway unterface) 1 1.2. 2.1 WSGI: 1 1.3. 2.3
    Atitit gui的实现模式文本 dom ast 像素绘图api native 目录 1. Pl ast xml domAst 1 1.1. 简介 1 1.1.1. 【具体语法树】 2 2.
    Atitit 遍历文件夹目录解决方案与规范 attilax总结 1. 规范 2 1.1. 注意的不要同时改变文件夹内容,增删文件。这样获取到的目录list不会变化 2 1.2. 主义中文名称文件读写
    Atitit node.js自定义模块化 Function walkFileTree() exports.walkFileTree =walkFileTree 引用  Files=require
    Atitit node.js问题解决总结t99 目录 1.1. 找不到node程序 1 1.2. GBK编码问题 1 2. 按行读取gbk编码问题 2 2.1. 先写入txt utf8 encode
    Atitit io读取文件法 目录 1. 文件法 1 1.1. 异步读取文件: 1 1.2. 2.同步读取方法 1 1.3. 二进制读文件: 1 2. 读取api规范 1 3. Atitit 按照
    Atitit 按照行读取文件 目录 1.1. 类库'readline' 1 1.2. 类库C:workspacedataindexGenerNodejssdkioFileUtils.js
    Atitit sumdoc index 2019 v6 t56 .docx Atitit sumdoc index s99 目录 1. Zip ver 1 1.1. C:UsersAdminis
  • 原文地址:https://www.cnblogs.com/liweiming/p/7638710.html
Copyright © 2011-2022 走看看