diff --git a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-etcd.md b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-etcd.md index a36a2b9b7..30d0bd8c4 100644 --- a/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-etcd.md +++ b/daprdocs/content/en/reference/components-reference/supported-state-stores/setup-etcd.md @@ -57,6 +57,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr {{% codetab %}} You can run Etcd locally using Docker Compose: + ``` version: '2' services: @@ -66,12 +67,17 @@ services: - "12379:2379" command: etcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://0.0.0.0:2379``` ``` -Save the docker-compose.yml file and run the following command to start the Etcd server: +Save the `docker-compose.yml` file and run the following command to start the Etcd server: -`docker-compose up -d` +``` +docker-compose up -d +``` -This starts the Etcd server in the background using the expose the default Etcd port of `2379`. You can then interact with the server using the `etcdctl` command-line client on `localhost:12379`. For example +This starts the Etcd server in the background and expose the default Etcd port of `2379`. You can then interact with the server using the `etcdctl` command-line client on `localhost:12379`. For example: +``` +etcdctl --endpoints=localhost:2379 put mykey myvalue +``` {{% /codetab %}}