Change aliyun install mirror to ustc because aliyun is outdated,it latest update in 2017/06/23

This commit is contained in:
khs1994 2017-10-19 22:41:37 +08:00
parent 74289f0e6d
commit baffd6a778
4 changed files with 25 additions and 18 deletions

View File

@ -2,12 +2,12 @@
Docker 在 1.13 版本之后,从 2017 年的 3 月 1 日开始,版本命名规则变为如下:
| 项目 | 说明 |
| -- | -- |
| 版本格式 | YY.MM |
| stable 版本 | 每个季度发行 |
| edge 版本 | 每个月发行 |
| 当前 Docker CE 版本 | 17.07.0 |
项目 | 说明
--------------- | -------
版本格式 | YY.MM
stable 版本 | 每个季度发行
edge 版本 | 每个月发行
当前 Docker CE 版本 | 17.10.0
同时 Docker 划分为 CE 和 EE。CE 版本即社区版免费支持周期三个月EE 即企业版,强调安全,付费使用。

View File

@ -12,9 +12,9 @@ Docker CE 支持 64 位版本 CentOS 7并且要求内核版本不低于 3.10
```bash
$ sudo yum remove docker \
docker-common \
docker-selinux \
docker-engine
docker-common \
docker-selinux \
docker-engine
```
### 使用 yum 源 安装
@ -22,7 +22,9 @@ $ sudo yum remove docker \
执行以下命令安装依赖包:
```bash
$ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
$ sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
```
鉴于国内网络问题,强烈建议使用国内源,下面先介绍国内源的使用。
@ -34,7 +36,7 @@ $ sudo yum install -y yum-utils device-mapper-persistent-data lvm2
```bash
$ sudo yum-config-manager \
--add-repo \
https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
https://http://mirrors.ustc.edu.cn/docker-ce/linux/centos/docker-ce.repo
```
>以上命令会添加稳定版本的 Docker CE yum 源。从 Docker 17.06 开始edge test 版本的 yum 源也会包含稳定版本的 Docker CE。

View File

@ -18,7 +18,9 @@ Docker CE 可以安装在 64 位的 x86 平台或 ARM 平台上(如[树莓派]
旧版本的 Docker 称为 `docker` 或者 `docker-engine`,使用以下命令卸载旧版本:
```bash
$ sudo apt-get remove docker docker-engine docker.io
$ sudo apt-get remove docker \
docker-engine \
docker.io
```
#### Debian 7 Wheezy
@ -64,14 +66,14 @@ $ sudo apt-get install \
为了确认所下载软件包的合法性,需要添加软件源的 GPG 密钥。
```bash
$ curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/debian/gpg | sudo apt-key add -
$ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | sudo apt-key add -
```
然后,我们需要向 `source.list` 中添加 Docker CE 软件源:
```bash
$ sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/debian \
"deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/$(. /etc/os-release; echo "$ID") \
$(lsb_release -cs) \
stable"
```
@ -124,7 +126,7 @@ $ sudo sh get-docker.sh --mirror Aliyun
```bash
$ sudo add-apt-repository \
"deb [arch=armhf] https://mirrors.aliyun.com/docker-ce/linux/debian \
"deb [arch=armhf] https://mirrors.ustc.edu.cn/docker-ce/linux/debian \
$(lsb_release -cs) \
stable"
```
@ -137,6 +139,7 @@ ARM 平台不能使用 x86 镜像,查看树莓派可使用镜像请访问 [arm
$ sudo systemctl enable docker
$ sudo systemctl start docker
```
Debian 7 Wheezy 请使用以下命令启动
```bash

View File

@ -18,7 +18,9 @@ Docker CE 可以安装在 64 位的 x86 平台或 ARM 平台上。Ubuntu 发行
旧版本的 Docker 称为 `docker` 或者 `docker-engine`,使用以下命令卸载旧版本:
```bash
$ sudo apt-get remove docker docker-engine docker.io
$ sudo apt-get remove docker \
docker-engine \
docker.io
```
#### Ubuntu 14.04 可选内核模块
@ -56,14 +58,14 @@ $ sudo apt-get install \
为了确认所下载软件包的合法性,需要添加软件源的 GPG 密钥。
```bash
$ curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
$ curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
```
然后,我们需要向 `source.list` 中添加 Docker 软件源
```bash
$ sudo add-apt-repository \
"deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu \
"deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
```