Docker安装指南

Ubuntu 14.04 16.04 (使用apt-get进行安装)

    # step 1: 安装必要的一些系统工具
    sudo apt-get -y update
    sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
    # step 2: 安装GPG证书
    curl -fsSL https://download.cs.aliyun.com/downloads/docker-ee/c071bf23-69fa-49d4-8706-061dd2e9ca20/ubuntu/gpg | sudo apt-key add -
    # Step 3: 写入软件源信息
    sudo add-apt-repository "deb [arch=amd64] https://download.cs.aliyun.com/downloads/docker-ee/c071bf23-69fa-49d4-8706-061dd2e9ca20/ubuntu $(lsb_release -cs) stable"
    # Step 4: 更新并安装 Docker-EE
    sudo apt-get -y update
    sudo apt-get -y install docker-ee

    # 安装指定版本的Docker-EE:
    # Step 1: 查找Docker-EE的版本:
    # apt-cache madison docker-ee
    #   docker-ee | 17.03.0~ee~1-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
    #   docker-ee | 17.03.1~ee~2-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
    #   docker-ee | 17.03.1~ee~3-0~ubuntu-xenial | https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages
    # Step2 : 安装指定版本的Docker-EE: (VERSION 例如上面的 17.03.0~ee~1-0~ubuntu-xenial)
    # sudo apt-get -y install docker-ee=[VERSION]

CentOS 7 (使用yum进行安装)

    # Step 1: 写入软件源地址
    sudo sh -c 'echo "https://download.cs.aliyun.com/downloads/docker-ee/c071bf23-69fa-49d4-8706-061dd2e9ca20/centos" > /etc/yum/vars/dockerurl'
    # step 2: 安装必要的一些系统工具
    sudo yum install -y yum-utils device-mapper-persistent-data lvm2
    # Step 3: 添加软件源信息
    sudo yum-config-manager --add-repo https://download.cs.aliyun.com/downloads/docker-ee/c071bf23-69fa-49d4-8706-061dd2e9ca20/centos/docker-ee.repo
    # Step 4: 更新并安装 Docker-EE
    sudo yum makecache fast
    sudo yum -y install docker-ee

    # 安装指定版本的Docker-EE:
    # Step 1: 查找Docker-EE的版本:
    # yum list docker-ee.x86_64 --showduplicates | sort -r
    #   Loading mirror speeds from cached hostfile
    #   Loaded plugins: branch, fastestmirror, langpacks
    #   docker-ee.x86_64        17.03.1.ee.3-1.el7.centos         docker-ee-stable-17.03
    #   docker-ee.x86_64        17.03.1.ee.2-1.el7.centos         docker-ee-stable-17.03
    #   docker-ee.x86_64        17.03.0.ee.1-1.el7.centos         docker-ee-stable-17.03
    #   Available Packages
    # Step2 : 安装指定版本的Docker-EE: (VERSION 例如上面的 17.03.0.ee.1-1.el7.centos)
    # sudo yum -y install docker-ee-[VERSION]
 
posted @   彼扬  阅读(166)  评论(0编辑  收藏  举报
努力加载评论中...

感谢您的阅读,如果有了您的奉献系统会更加完善

点击右上角即可分享
微信分享提示