Skip to content

Commit

Permalink
add footnote in how_to_dev_in_docker_container_by_vscode_on_windows.md (
Browse files Browse the repository at this point in the history
#443)

### What problem were solved in this pull request?

Problem:

我在跟着这篇文档学习时,在创建容器后没有发现`miniob`目录,我猜测这可能是因为文档已经过时,因此我添加了补充说明来解决这个问题。
  • Loading branch information
HairlessVillager authored Sep 11, 2024
1 parent 39c442b commit 60b0116
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ docker run -d --name fortest --privileged -v $PWD/miniob:/root/miniob oceanbase/

![start docker3](./images/dev_in_docker_container_by_vscode_on_windows_startDocker_in_vscode_3.png)

> **没有看到 miniob 目录?**
>
> 请尝试以下方法:
>
> 在 Docker Desktop 中查看对应容器的 Log,如果提示 `REPO_ADDR` 未设置,请重新启动一个容器,并加上`-e REPO_ADDR=<your_repo_addr>` 参数,如`docker run -d --name fortest2 --privileged -v $PWD/miniob:/root/miniob -e REPO_ADDR=https://github.com/oceanbase/miniob.git oceanbase/miniob`
>
> 容器启动后,在终端输入`ls`,会出现`source`目录,用`cd source`命令进入目录,再次输入`ls`即可发现`miniob`目录。
>
> 如果以上方法失效,请在 GitHub 创建一个 Issue,并附上容器的 Log。
综合运用以下代码运行build.sh文件

~~~bash
Expand Down Expand Up @@ -249,4 +259,4 @@ cd build_debug
这会连接到服务端的6789端口。


编辑日期 2023-10-17
编辑日期 2024-09-10

0 comments on commit 60b0116

Please sign in to comment.