Skip to content

Instantly share code, notes, and snippets.

@odytrice
Last active January 31, 2019 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odytrice/641d57e9a724f54b7fe82c3a50c11910 to your computer and use it in GitHub Desktop.
Save odytrice/641d57e9a724f54b7fe82c3a50c11910 to your computer and use it in GitHub Desktop.
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