minikube docker-env incorrectly recognizes shell type in PowerShell 7.1.5 #12860
Labels
co/docker-env
docker-env issues
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Steps to reproduce the issue:
Open PowerShell 7.1.5
Run
minikube docker-env
Minikube displays:
as if it was run in CMD instead of Powershell.
If the
minikube docker-env
is started in Windows 10 built-in PowerShell it works correctly.If I execute
& minikube -p minikube docker-env | Invoke-Expression
command in PowerShell 7.1.5 it returns error:The same command in built-in Powershell works without flaws.
Temporary workaround is pointing to the correct version of shell:
& minikube -p minikube docker-env --shell powershell | Invoke-Expression
The text was updated successfully, but these errors were encountered: