什么是 docker 运行 -w 标志?
what is docker run -w flag?
遇到一个使用 -w 标志的 docker 运行 命令。
docker run -v $(pwd):/project \
-w /project \
-p 8081:8081 \
gcr.io/base-project/myoh:v1
知道 -w
标志的用途吗?
运行 docker run --help
在你的 shell.
-w, --workdir string Working directory inside the container
遇到一个使用 -w 标志的 docker 运行 命令。
docker run -v $(pwd):/project \
-w /project \
-p 8081:8081 \
gcr.io/base-project/myoh:v1
知道 -w
标志的用途吗?
运行 docker run --help
在你的 shell.
-w, --workdir string Working directory inside the container