【发布时间】:2019-08-02 07:02:44
【问题描述】:
我在MacOS 中运行了以下命令,将当前目录挂载到容器的src 目录。我将如何在windows 10 中做到这一点。
docker run -it --rm --mount type=bind,source="$(pwd)",target=/src ucd-fff-connector bash -c 'cd src; python main.py;'
例如,我知道我必须将"$(pwd)" 更改为"%cd%"。我没有要测试的Windows计算机。我是否还需要将单引号' 切换为双引号"?
如果有一个可以在不同平台上运行的版本也不错,例如:command prompt、terminal、powershell 等
【问题讨论】:
标签: docker