mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-28 20:55:21 +00:00
Update etcd to v3.5.21
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
`etcd` 基于 `Go` 语言实现,因此,用户可以从[项目主页](https://github.com/etcd-io/etcd)下载源代码自行编译,也可以下载编译好的二进制文件,甚至直接使用制作好的 `Docker` 镜像文件来体验。
|
`etcd` 基于 `Go` 语言实现,因此,用户可以从[项目主页](https://github.com/etcd-io/etcd)下载源代码自行编译,也可以下载编译好的二进制文件,甚至直接使用制作好的 `Docker` 镜像文件来体验。
|
||||||
|
|
||||||
> 注意:etcd 官方仅维护最新两个次版本(当前为 3.5 和 3.6)。本章示例基于 etcd `3.6.x` 版本编写。请访问 [etcd 官方发布页](https://github.com/etcd-io/etcd/releases) 获取最新版本。
|
> 注意:etcd 官方仅维护最新两个次版本(当前为 3.5 和 3.6)。本章示例基于 etcd `3.5.x` 版本编写。etcd 3.6.x 可用于新部署。请访问 [etcd 官方发布页](https://github.com/etcd-io/etcd/releases) 获取最新版本。
|
||||||
|
|
||||||
### 15.2.1 二进制文件方式下载
|
### 15.2.1 二进制文件方式下载
|
||||||
|
|
||||||
@@ -13,12 +13,12 @@
|
|||||||
例如,使用 `curl` 工具下载压缩包,并解压。
|
例如,使用 `curl` 工具下载压缩包,并解压。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.6.8/etcd-v3.6.8-linux-amd64.tar.gz -o etcd-v3.6.8-linux-amd64.tar.gz
|
$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.5.21/etcd-v3.5.21-linux-amd64.tar.gz -o etcd-v3.5.21-linux-amd64.tar.gz
|
||||||
|
|
||||||
## 国内用户可选择就近的网络加速方式(以可用镜像站为准)
|
## 国内用户可选择就近的网络加速方式(以可用镜像站为准)
|
||||||
|
|
||||||
$ tar xzvf etcd-v3.6.8-linux-amd64.tar.gz
|
$ tar xzvf etcd-v3.5.21-linux-amd64.tar.gz
|
||||||
$ cd etcd-v3.6.8-linux-amd64
|
$ cd etcd-v3.5.21-linux-amd64
|
||||||
```
|
```
|
||||||
解压后,可以看到文件包括
|
解压后,可以看到文件包括
|
||||||
|
|
||||||
@@ -65,8 +65,8 @@ $ docker run \
|
|||||||
-p 2379:2379 \
|
-p 2379:2379 \
|
||||||
-p 2380:2380 \
|
-p 2380:2380 \
|
||||||
--mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \
|
--mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \
|
||||||
--name etcd-gcr-v3.6.8 \
|
--name etcd-gcr-v3.5.21 \
|
||||||
quay.io/coreos/etcd:v3.6.8 \
|
quay.io/coreos/etcd:v3.5.21 \
|
||||||
/usr/local/bin/etcd \
|
/usr/local/bin/etcd \
|
||||||
--name s1 \
|
--name s1 \
|
||||||
--data-dir /etcd-data \
|
--data-dir /etcd-data \
|
||||||
|
|||||||
Reference in New Issue
Block a user