$ minishift start --iso-url centos
(can this be configured in a minishift profile to be used?)
$ eval $(minishift docker-env)
$ eval $(minishift oc-env)
$ oc config use-context minishift # to make oc use minishift context
$ oc login -u developer
<password is anything you want>
$ oc login -u system:admin
$ minishift console
$ minishift image list
$ minishift image list --vm
$ oc <action> --as system:admin <object>
This is especially handy when one has to delete and start minishift a lot. Images can be exported, so that they don't have to be rebuilt again in the new environment.
$ minishift image list --vm # to see images in minishift
$ minishift image export <image> # to export and image
$ minishift image list # to see images exported to the host
$ minishift image import <image> # to import an image back to minishift
$ docker login -u developer -p $(oc whoami -t) $(minishift openshift registry)