简体   繁体   中英

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. I tried getting their steps to work with Git Bash, Powershell, and Command Prompt but to no success. I am currently trying Cygwin to see if it would work however I am running into some issues. I currently run docker-machine env default and see the output:

 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 .

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. Is there any reason why I am getting this command not found error on Cygwin, and what should I do to fix it?

Thanks for reading

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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