- Download https://github.com/minishift/minishift/releases/download/v1.34.1/minishift-1.34.1-windows-amd64.zip
- Extract minishift package
- Move minishift.exe to C:\ to avoid the error
Error starting the VM: Error creating the VM. Error creating machine: Error in driver during machine creation: open /Users/bachpt/.minishift/cache/iso/centos/v1.15.0/minishift-centos7.iso: The system cannot find the path specified.
- Run
cmd
or any console as administrator - Go to C:\ and run the following commands
C:\>minishift delete --clear-cache
C:\>minishift start --vm-driver virtualbox
- The oc binary is located in the ~/.minishift/cache/oc/v3.11.0 directory
- In window, it is located in the c:\Users[username].minishift\cache\oc\v3.11.0\windows\
Runs C:\>minishift oc-env
to display the command you need to type into your shell
SET PATH=C:\Users\bachpt.minishift\cache\oc\v3.11.0\windows;%PATH%
REM Run this command to configure your shell:
REM @FOR /f "tokens=*" %i IN ('minishift oc-env') DO @call %i
C:\>SET PATH=C:\Users\bachpt\.minishift\cache\oc\v3.11.0\windows;%PATH%
C:\>@FOR /f "tokens=*" %i IN ('minishift oc-env') DO @call %i
Test oc
command by C:\>oc --help
See more at https://docs.okd.io/latest/minishift/openshift/openshift-client-binary.html