本文介绍了Docker包含无效字符"$ {PWD}"本地卷名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用 windows
我遵循了文档
最后,我无法执行必要的命令,并且收到以下错误消息:
In the end I can not execute the necessary commands and I receive the following error :
任何建议对我都会非常有帮助,谢谢!
Any suggestion will be very helpful for me, thank you !
推荐答案
每个shell的路径扩展都不同.
Path expansion is different in each shell.
对于PowerShell使用:${pwd}
For PowerShell use: ${pwd}
对于cmd.exe``命令提示符'',请使用:%cd%
For cmd.exe "Command Prompt" use: %cd%
bash,sh,zsh和Docker Toolbox Quickstart Terminal的使用:$(pwd)
bash, sh, zsh, and Docker Toolbox Quickstart Terminal use: $(pwd)
请注意,如果路径中有空格,通常需要引用路径.
Note, if you have spaces in your path, you'll usually need to quote the path.
也在此处回答:安装当前目录在Windows 10上的Docker中作为卷
这篇关于Docker包含无效字符"$ {PWD}"本地卷名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!