From 60b0116bf9554675ef02a5cd490a39d5a6eaf43a Mon Sep 17 00:00:00 2001 From: HairlessVillager <64526732+HairlessVillager@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:37:50 +0800 Subject: [PATCH] add footnote in how_to_dev_in_docker_container_by_vscode_on_windows.md (#443) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What problem were solved in this pull request? Problem: 我在跟着这篇文档学习时,在创建容器后没有发现`miniob`目录,我猜测这可能是因为文档已经过时,因此我添加了补充说明来解决这个问题。 --- ...o_dev_in_docker_container_by_vscode_on_windows.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/docs/dev-env/how_to_dev_in_docker_container_by_vscode_on_windows.md b/docs/docs/dev-env/how_to_dev_in_docker_container_by_vscode_on_windows.md index ebb2a4fc7..e206ffb46 100644 --- a/docs/docs/dev-env/how_to_dev_in_docker_container_by_vscode_on_windows.md +++ b/docs/docs/dev-env/how_to_dev_in_docker_container_by_vscode_on_windows.md @@ -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=` 参数,如`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 @@ -249,4 +259,4 @@ cd build_debug 这会连接到服务端的6789端口。 -编辑日期 2023-10-17 \ No newline at end of file +编辑日期 2024-09-10