Skip to content

Commit 2693040

Browse files
committed
[doc] add info for docker
1 parent 59cc93d commit 2693040

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

QA.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,21 @@
266266
> 如果拉取镜像速度慢,可以考虑使用代理,请参考文档 [Docker pull 代理](https://www.lfhacks.com/tech/pull-docker-images-behind-proxy/) 和 [官方文档](https://docs.docker.com/engine/daemon/proxy/#systemd-unit-file)
267267

268268

269-
2. 运行 Docker 容器:请执行如下指令:
269+
2. 运行 Docker 容器:以 ch3 为例,请执行如下指令:
270270
```sh
271+
# 拉取仓库
272+
git clone $YOUR_REPO_URL -b ch3
273+
274+
# 进入仓库
275+
cd $YOUR_REPO_NAME
276+
271277
DOCKER_NAME=wangben18/rcore-tutorial-v3:v0.1.0 make docker
278+
279+
# 在 Docker 容器内
280+
281+
# 设置 git 信任目录
282+
git config --global --add safe.directory /mnt
283+
284+
# 运行 rCore-Tutorial-OS
285+
cd os && make run
272286
```

0 commit comments

Comments
 (0)