Skip to content

Instantly share code, notes, and snippets.

@odytrice odytrice/minikube.ps1
Last active Jan 31, 2019

Embed
What would you like to do?
Minikube PowerShell
# This starts minikube and configures docker to point to minikube cluster
"
====================================
Welcome to Minikube Docker Shell
====================================
"
"- Checking Minikube Status"
$isRunning = ((minikube status) -join ' ' ).Contains("Running")
""
if($isRunning){
"- Minikube is already Running"
}
else{
"- Starting Minikube"
""
minikube start --vm-driver hyperv --hyperv-virtual-switch="Default Switch"
}
""
"- Configuring Docker"
""
minikube docker-env | Invoke-Expression
cd D:\Projects\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.