Last active
January 31, 2019 12:35
-
-
Save odytrice/641d57e9a724f54b7fe82c3a50c11910 to your computer and use it in GitHub Desktop.
Minikube PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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