Skip to content

Commit cb08a6e

Browse files
committed
Changed etcd container example in readme
1 parent 492501b commit cb08a6e

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@ services and other useful things. [gRPC](https://grpc.io) is used for communicat
1111
## etcd required
1212

1313
If there is no etcd in your infrastructure, you can install it from a
14-
[docker container](https://hub.docker.com/r/bitnami/etcd) for tests:
14+
[docker container](https://etcd.io/docs/v3.6/op-guide/container/) for tests:
1515

1616
```shell
17-
docker run -d --name etcd --env=ALLOW_NONE_AUTHENTICATION=yes -p 2379:2379 -p 2380:2380 bitnami/etcd
17+
docker run -d \
18+
-p 2379:2379 \
19+
-p 2380:2380 \
20+
--name etcd gcr.io/etcd-development/etcd:v3.6.5 \
21+
/usr/local/bin/etcd \
22+
--name etcd \
23+
--initial-advertise-peer-urls http://127.0.0.1:2380 --listen-peer-urls http://0.0.0.0:2380 \
24+
--advertise-client-urls http://127.0.0.1:2379 --listen-client-urls http://0.0.0.0:2379 \
25+
--initial-cluster etcd=http://127.0.0.1:2380
1826
```
1927

2028
Of course, you can use docker in production or install etcd using your favorite package manager.

0 commit comments

Comments
 (0)