Skip to content

Commit

Permalink
docs: fix docker example in quick_start.md (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnJeffersonWang committed May 6, 2024
1 parent 44f47cd commit 8488f13
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions content/en/docs/kitex/Getting started/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,21 @@ Before starting this section, make sure you have the required **Pre-knowledge**

```bash
docker build -t kitex-examples .
```

3. Run the server code:

```bash
docker run --network host kitex-examples ./hello-server

// Output similar logs indicating successful execution
2024/01/18 12:47:34.712415 server.go:83: [Info] KITEX: server listen at addr=[::]:8888
```

3. Run the client code:
4. Run the client code:

```bash
docker run --network host kitex-examples ./hello-server
docker run --network host kitex-examples ./hello-client

// Output similar logs every second indicating successful execution
2024/01/18 12:48:20 Response({Message:my request})
Expand Down
10 changes: 8 additions & 2 deletions content/zh/docs/kitex/Getting started/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,21 @@ description: "Kitex 基础示例"

```shell
docker build -t kitex-examples .
```

3. 运行服务端代码:

```shell
docker run --network host kitex-examples ./hello-server

// 输出类似日志代表运行成功
2024/01/18 12:47:34.712415 server.go:83: [Info] KITEX: server listen at addr=[::]:8888
```

3. 运行客户端代码:
4. 运行客户端代码:

```shell
docker run --network host kitex-examples ./hello-server
docker run --network host kitex-examples ./hello-client

// 每隔一秒输出类似日志代表运行成功
2024/01/18 12:48:20 Response({Message:my request})
Expand Down

0 comments on commit 8488f13

Please sign in to comment.