提交 e500cde7 编写于 作者: T Thai Nguyen 提交者: TensorFlower Gardener

Mount host's current dirrectory to /host_dir instead of /tmp

When mounting to /tmp, temporary files in the container is saved
to host directory, making it messy even after container exited.

PiperOrigin-RevId: 340155058
Change-Id: I87b1358875f0df0319d6d9572ae226c6b8aca9df
上级 1d5d379f
......@@ -41,17 +41,17 @@ docker build . -t tflite-builder -f tflite-android.Dockerfile
```
* Start the docker container interactively by mounting your current folder to
/tmp inside the container (note that /tensorflow_src is the TensorFlow
/host_dir inside the container (note that /tensorflow_src is the TensorFlow
repository inside the container):
```shell
docker run -it -v $PWD:/tmp tflite-builder bash
docker run -it -v $PWD:/host_dir tflite-builder bash
```
If you use PowerShell on Windows, replace "$PWD" with "pwd".
If you would like to use a TensorFlow repository on the host, mount that host
directory instead (-v hostDir:/tmp).
directory instead (-v hostDir:/host_dir).
* Once you are inside the container, you can run the following to download
additional Android tools and libraries (note that you may need to accept the
......@@ -62,8 +62,8 @@ android update sdk --no-ui -a --filter tools,platform-tools,android-${ANDROID_AP
```
You can now proceed to the "Build and Install" section. After you are finished
building the libraries, you can copy them to /tmp inside the container so that
you can access them on the host.
building the libraries, you can copy them to /host_dir inside the container so
that you can access them on the host.
### Set up build environment without Docker
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册