【发布时间】:2019-09-29 16:32:45
【问题描述】:
我在 windows 10 pro 上的 Visual Studio 代码上使用 git bash 集成终端。
如果尝试这个命令eval $(minikube docker-env) 我得到bash: syntax error near unexpected token('`
然后我尝试eval '$(minikube docker-env)' 并收到此错误bash: You: command not found
如果尝试minikube docker-env 我得到
You can further specify your shell with either 'cmd' or 'powershell' with the --shell flag.
SET DOCKER_TLS_VERIFY=1
SET DOCKER_HOST=tcp://192.168.0.164:2376
SET DOCKER_CERT_PATH=C:\Users\migue\.minikube\certs
SET DOCKER_API_VERSION=1.35
REM Run this command to configure your shell:
REM @FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i
最后,如果我尝试使用REM @FOR /f "tokens=*" %i IN '('minikube docker-env')' DO @%i,我会得到bash: REM: command not found
【问题讨论】:
标签: windows docker kubernetes git-bash minikube