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]

    云服务器服务器,价格很低很低,值得看看
    ①真便宜:云服务器69元1年,203元3年(全网最低价)
    ②秒杀:腾讯云服务器秒杀99元/年起
    ③活动大全:阿里云服务器活动合集(你要的活动都在这)