Skip to content

Instantly share code, notes, and snippets.

@bakkujp
Last active November 9, 2019 07:19
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 bakkujp/99c1d840bbd29fdbb8973bb9fd18d488 to your computer and use it in GitHub Desktop.
Save bakkujp/99c1d840bbd29fdbb8973bb9fd18d488 to your computer and use it in GitHub Desktop.
Minishift - Installation and setting-up

Install minishift on Window

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.

Setting Up Minishift to Use VirtualBox

  • 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

Using the OpenShift Client Binary (oc)

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment