diff --git a/docs/en/start/configuration/start.md b/docs/en/start/configuration/start.md index 94635d56c8..8c34ffe3f3 100644 --- a/docs/en/start/configuration/start.md +++ b/docs/en/start/configuration/start.md @@ -9,7 +9,7 @@ The architecture of this demo is shown in the figure below. The processes starte [Then config file](https://github.com/mosn/layotto/blob/main/configs/runtime_config.json) claims `etcd` in the `config_store` section, but users can change it to other configuration center they want (currently only support etcd and apollo). ### step 1. Deploy etcd and Layotto -#### **with Docker Compose** +#### **With Docker Compose** You can start etcd and Layotto with docker-compose ```bash @@ -75,6 +75,22 @@ delete keys success write start receive subscribe resp store_name:"config_demo" app_id:"apollo" items: tags: > ``` +### step 3. Stop containers and release resources + +#### **Docker Compose** +If you started etcd and Layotto with docker-compose, you can shut them down as follows: + +```bash +cd ${project_path}/docker/layotto-etcd +docker-compose stop +``` + +#### **Destroy the etcd container** +If you started etcd with Docker, you can destroy the etcd container as follows: +```shell +docker rm -f etcd +``` + ## Next step ### What did this demo do? diff --git a/docs/en/start/sequencer/start.md b/docs/en/start/sequencer/start.md index 43f3d77c97..b5286b01b0 100644 --- a/docs/en/start/sequencer/start.md +++ b/docs/en/start/sequencer/start.md @@ -13,7 +13,7 @@ The architecture of this example is shown in the figure below, and the processes ![img.png](../../../img/sequencer/etcd/img.png) ### step 1. Deploy etcd and Layotto -#### **with Docker Compose** +#### **With Docker Compose** You can start etcd and Layotto with docker-compose ```bash @@ -84,6 +84,22 @@ Next id:next_id:9 Next id:next_id:10 Demo success! ``` +### step 3. Stop containers and release resources + +#### **Docker Compose** +If you started etcd and Layotto with docker-compose, you can shut them down as follows: + +```bash +cd ${project_path}/docker/layotto-etcd +docker-compose stop +``` + +#### **Destroy the etcd container** +If you started etcd with Docker, you can destroy the etcd container as follows: +```shell +docker rm -f etcd +``` + ### Next step #### What does this client program do? diff --git a/docs/zh/start/sequencer/start.md b/docs/zh/start/sequencer/start.md index 2f3ac0ecac..bffaf4ccbc 100644 --- a/docs/zh/start/sequencer/start.md +++ b/docs/zh/start/sequencer/start.md @@ -88,6 +88,22 @@ Next id:next_id:9 Next id:next_id:10 Demo success! ``` +### step 3.销毁容器,释放资源 + +#### **关闭 Docker Compose** +如果您是用 docker-compose 启动的 etcd 和 Layotto,可以按以下方式关闭: + +```bash +cd ${project_path}/docker/layotto-etcd +docker-compose stop +``` +#### **销毁 etcd Docker 容器** +如果您是用 Docker 启动的 etcd,可以按以下方式销毁 etcd 容器: + +```shell +docker rm -f etcd +``` + ### 下一步 #### 这个客户端程序做了什么?