Docker EE安装帮助教程(Ubuntu+CentOS)

Docker EE安装帮助教程,码笔记分享Ubuntu和CentOS的Docker EE安装帮助步骤流程:

Docker EE安装帮助

帮助教程包括Ubuntu14.04 16.04和CentOS 7:

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/2da054e4-588e-4951-ab3d-a8f8d93c357a/ubuntu/gpg | sudo apt-key add -

  • # Step 3: 写入软件源信息
  • sudo add-apt-repository "deb [arch=amd64] https://download.cs.aliyun.com/downloads/docker-ee/2da054e4-588e-4951-ab3d-a8f8d93c357a/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/2da054e4-588e-4951-ab3d-a8f8d93c357a/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/2da054e4-588e-4951-ab3d-a8f8d93c357a/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]

    2021云服务器又降价了,阿里云VS腾讯云
    云服务器特价:2021阿里云服务器优惠活动(全网低价)
    ①真便宜:阿里云服务器69元1年,203元3年(价格便宜 值得买)
    ②腾讯云:腾讯云服务器秒杀特惠88元一年起(特价)
    ③代金券:2021阿里云代金券一键领取中
    ④免费提供技术支持: 咨询客服