简体   繁体   English

在Cygwin上评估“ docker-machine env default”输出的建议命令失败

[英]Suggested command to eval “docker-machine env default” output fails on Cygwin

I am currently working on this: https://mozilla.github.io/ichnaea/install/devel.html#prerequisites and have been a bit stuck since they recommend working with Linux/Mac but I am limited to Windows. 我目前正在研究此问题: https : //mozilla.github.io/ichnaea/install/devel.html#prerequisites ,由于他们建议使用Linux / Mac,所以有些卡住了,但我仅限于Windows。 I tried getting their steps to work with Git Bash, Powershell, and Command Prompt but to no success. 我试图让他们的步骤与Git Bash,Powershell和Command Prompt一起使用,但是没有成功。 I am currently trying Cygwin to see if it would work however I am running into some issues. 我目前正在尝试Cygwin,以查看它是否可以工作,但是我遇到了一些问题。 I currently run docker-machine env default and see the output: 我目前正在docker-machine env default运行docker-machine env default并查看输出:

 export DOCKER_TLS_VERIFY="1"
 export DOCKER_HOST="..."
 export DOCKER_CERT_PATH="..."
 export DOCKER_MACHINE_NAME="default"
 export COMPOSE_CONVERT_WINDOWS_PATHS="true"
 # Run this command to configure your shell:
 # eval $("C:\Program Files\Docker Toolbox\docker-machine.exe" env default)

When I attempt to run the command to configure the shell, eval $("C:\\Program Files\\Docker Toolbox\\docker-machine.exe" env default) , I get an error saying: -bash: C:\\Program Files\\Docker Toolbox\\docker-machine.exe: command not found . 当我尝试运行命令配置外壳程序eval $("C:\\Program Files\\Docker Toolbox\\docker-machine.exe" env default) ,出现错误消息: -bash: C:\\Program Files\\Docker Toolbox\\docker-machine.exe: command not found

This is different than Git Bash, Powershell, and CMD since when I ran the respective commands on those shells there were no issues at all and it led me to successfully move on to the next steps. 这与Git Bash,Powershell和CMD不同,因为当我在这些Shell上运行各自的命令时,根本没有问题,这使我成功地进行了下一步。 Is there any reason why I am getting this command not found error on Cygwin, and what should I do to fix it? 是否有任何原因导致我在Cygwin上出现此command not found错误,我该怎么做以解决该问题?

Thanks for reading 谢谢阅读

添加cygpath调用以转换可执行路径:

eval "$("$(cygpath -u "C:\Program Files\Docker Toolbox\docker-machine.exe")" env default)"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM