Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-env command does not work in powershell (v1.7) #6524

Closed
suecideTech opened this issue Feb 6, 2020 · 1 comment
Closed

docker-env command does not work in powershell (v1.7) #6524

suecideTech opened this issue Feb 6, 2020 · 1 comment
Assignees

Comments

@suecideTech
Copy link

Environment

  • minikube v1.7.1 on Microsoft Windows 10 Pro 10.0.18362 Build 18362

Commnd Execute result

PS C:\Windows\system32> minikube docker-env --shell powershell | Invoke-Expression
Invoke-Expression : 引数が空の文字列であるため、パラメーター 'Command' にバインドできません。
発生場所 行:1 文字:42
+ minikube docker-env --shell powershell | Invoke-Expression
+                                          ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:PSObject) [Invoke-Expression]、ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.InvokeExpressionCommand

Remarks
Line break position is different between v1.7.2 and v1.6.2.
There is a line break after $Env.

v1.6.2
PS C:\Windows\system32> docker-env --shell powershell
$Env:DOCKER_TLS_VERIFY = "1"
$Env:DOCKER_HOST = "tcp://192.168.163.55:2376"
$Env:DOCKER_CERT_PATH = "C:\Users\***\.minikube\certs"
# Run this command to configure your shell:
# & minikube docker-env | Invoke-Expression

PS C:\Windows\system32>
v1.7.2
PS C:\Windows\system32> minikube docker-env --shell powershell
$Env:DOCKER_TLS_VERIFY = "1"
$Env:DOCKER_HOST = "tcp://192.168.163.55:2376"
$Env:DOCKER_CERT_PATH = "C:\Users\***\.minikube\certs"
$Env:MINIKUBE_ACTIVE_DOCKERD = "minikube"

# Please run command bellow to point your shell to minikube's docker-daemon :
# & minikube -p minikube docker-env | Invoke-Expression

PS C:\Windows\system32>
@tstromberg tstromberg self-assigned this Feb 6, 2020
@tstromberg tstromberg changed the title docker-env command does not work in powershell (v1.7.2) docker-env command does not work in powershell (v1.7) Feb 6, 2020
@tstromberg
Copy link
Contributor

Fixed in v1.7.2. Thank you for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants