先下载安装包

https://github.com/minishift/minishift/releases

mac上运行命令

minishift start --vm-driver=virtualbox --registry-mirror=https://docker.mirrors.ustc.edu.cn

运行中会下载一个iso镜像,如果比较慢,就手工下载下来,然后放到相关用户的.minishift相应路径下

我的是 /Users/ericnie/.minishift/cache/iso/centos/v1.12.0

加入path路径后,然后通过

ericdeMacBook-Pro:v1.12.0 ericnie$ minishift start --vm-driver virtualbox
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.10.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.10.0' is supported ... OK
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK
-- Checking if VirtualBox is installed ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'virtualbox' hypervisor ...
-- Starting Minishift VM ......................... OK
-- Checking for IP address ... OK
-- Checking for nameservers ... OK
-- Checking if external host is reachable from the Minishift VM ...
Pinging 8.8.8.8 ... FAIL
VM is unable to ping external host
-- Checking HTTP connectivity from the VM ...
Retrieving http://minishift.io/index.html ... OK
-- Checking if persistent storage volume is mounted ... OK
-- Checking available disk space ... % used OK
-- OpenShift cluster will be configured with ...
Version: v3.10.0
-- Copying oc binary from the OpenShift container image to VM ... OK
-- Starting OpenShift cluster ................................
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3. is available ...
Checking type of volume mount ...
Determining server IP ...
Using public hostname IP 192.168.99.100 as the host IP
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3. is available ...
Starting OpenShift using openshift/origin-control-plane:v3. ...
I0924 ::47.549769 flags.go:] Running "create-kubelet-flags"
I0924 ::48.749646 run_kubelet.go:] Running "start-kubelet"
I0924 ::49.070376 run_self_hosted.go:] Waiting for the kube-apiserver to be ready ...
I0924 ::12.245945 interface.go:] Installing "kube-proxy" ...
I0924 ::12.246519 interface.go:] Installing "kube-dns" ...
I0924 ::12.246529 interface.go:] Installing "openshift-apiserver" ...
I0924 ::12.246570 apply_template.go:] Installing "openshift-apiserver"
I0924 ::12.248961 apply_template.go:] Installing "kube-proxy"
I0924 ::12.250870 apply_template.go:] Installing "kube-dns"
I0924 ::21.826217 interface.go:] Finished installing "kube-proxy" "kube-dns" "openshift-apiserver"
I0924 ::05.262675 run_self_hosted.go:] openshift-apiserver available
I0924 ::05.263334 interface.go:] Installing "openshift-controller-manager" ...
I0924 ::05.263358 apply_template.go:] Installing "openshift-controller-manager"
I0924 ::08.089585 interface.go:] Finished installing "openshift-controller-manager"
Adding default OAuthClient redirect URIs ...
Adding router ...
Adding web-console ...
Adding centos-imagestreams ...
Adding registry ...
Adding sample-templates ...
Adding persistent-volumes ...
I0924 ::08.109483 interface.go:] Installing "openshift-router" ...
I0924 ::08.109517 interface.go:] Installing "openshift-web-console-operator" ...
I0924 ::08.109527 interface.go:] Installing "centos-imagestreams" ...
I0924 ::08.109535 interface.go:] Installing "openshift-image-registry" ...
I0924 ::08.109542 interface.go:] Installing "sample-templates" ...
I0924 ::08.109549 interface.go:] Installing "persistent-volumes" ...
I0924 ::08.113860 apply_list.go:] Installing "centos-imagestreams"
I0924 ::08.115257 apply_template.go:] Installing "openshift-web-console-operator"
I0924 ::08.117497 interface.go:] Installing "sample-templates/postgresql" ...
I0924 ::08.117517 interface.go:] Installing "sample-templates/cakephp quickstart" ...
I0924 ::08.117529 interface.go:] Installing "sample-templates/dancer quickstart" ...
I0924 ::08.117540 interface.go:] Installing "sample-templates/django quickstart" ...
I0924 ::08.117554 interface.go:] Installing "sample-templates/sample pipeline" ...
I0924 ::08.117564 interface.go:] Installing "sample-templates/mongodb" ...
I0924 ::08.117573 interface.go:] Installing "sample-templates/mysql" ...
I0924 ::08.117583 interface.go:] Installing "sample-templates/rails quickstart" ...
I0924 ::08.117596 interface.go:] Installing "sample-templates/jenkins pipeline ephemeral" ...
I0924 ::08.117606 interface.go:] Installing "sample-templates/mariadb" ...
I0924 ::08.117616 interface.go:] Installing "sample-templates/nodejs quickstart" ...
I0924 ::08.117730 apply_list.go:] Installing "sample-templates/nodejs quickstart"
I0924 ::08.118007 apply_list.go:] Installing "sample-templates/postgresql"
I0924 ::08.118198 apply_list.go:] Installing "sample-templates/cakephp quickstart"
I0924 ::08.118422 apply_list.go:] Installing "sample-templates/dancer quickstart"
I0924 ::08.118483 apply_list.go:] Installing "sample-templates/django quickstart"
I0924 ::08.119167 apply_list.go:] Installing "sample-templates/sample pipeline"
I0924 ::08.119756 apply_list.go:] Installing "sample-templates/mongodb"
I0924 ::08.168681 apply_list.go:] Installing "sample-templates/mysql"
I0924 ::08.169096 apply_list.go:] Installing "sample-templates/rails quickstart"
I0924 ::08.169257 apply_list.go:] Installing "sample-templates/jenkins pipeline ephemeral"
I0924 ::08.169400 apply_list.go:] Installing "sample-templates/mariadb"
I0924 ::20.746839 interface.go:] Finished installing "sample-templates/postgresql" "sample-templates/cakephp quickstart" "sample-templates/dancer quickstart" "sample-templates/django quickstart" "sample-templates/sample pipeline" "sample-templates/mongodb" "sample-templates/mysql" "sample-templates/rails quickstart" "sample-templates/jenkins pipeline ephemeral" "sample-templates/mariadb" "sample-templates/nodejs quickstart"
I0924 ::20.746863 interface.go:] Finished installing "openshift-router" "openshift-web-console-operator" "centos-imagestreams" "openshift-image-registry" "sample-templates" "persistent-volumes"
Server Information ...
OpenShift server started. The server is accessible via web console at:
https://192.168.99.100:8443

运行oc-env命令,将路径加到path中

ericdeMacBook-Pro:v1.12.0 ericnie$ minishift oc-env
export PATH="/Users/ericnie/.minishift/cache/oc/v3.10.0/darwin:$PATH"
# Run this command to configure your shell:
# eval $(minishift oc-env)

然后就可以愉快的玩耍了......

minishift安装的更多相关文章

  1. 【译文连载】 理解Istio服务网格(第二章 安装)

    全书目录 第一章 概述 本文目录 1.命令行工具安装 2. Kubernetes/OpenShift安装 3. Istio安装 4.示例Java微服务安装 4.1 源码概览 4.2 编译和部署cust ...

  2. OpenShift helm的安装

    1.安装过程 下载addons的代码 $ git clone https://github.com/jorgemoralespou/minishift-addons $ cd minishift-ad ...

  3. CDK安装

    1.下载cdk https://developers.redhat.com/products/cdk/download/ 2.在mac OS上更名并加入目录 $ mkdir -p ~/bin $ cp ...

  4. OpenShift 本地开发环境配置(基于 Minishift)

    本文要做什么? 很多为了验证应用在 OpenShift 平台的行为是否正常,或者组成一个简单的开发环境,直接搭建一个 OpenShift/Origin 环境可能太重了,而且运行在本机可能占用内存也太多 ...

  5. docker——容器安装tomcat

    写在前面: 继续docker的学习,学习了docker的基本常用命令之后,我在docker上安装jdk,tomcat两个基本的java web工具,这里对操作流程记录一下. 软件准备: 1.jdk-7 ...

  6. 网络原因导致 npm 软件包 node-sass / gulp-sass 安装失败的处理办法

    如果你正在构建一个基于 gulp 的前端自动化开发环境,那么极有可能会用到 gulp-sass ,由于网络原因你可能会安装失败,因为安装过程中部分细节会到亚马逊云服务器上获取文件.本文主要讨论在不变更 ...

  7. Sublime Text3安装JsHint

    介绍 Sublime Text3使用jshint依赖Nodejs,SublimeLinter和Sublimelinter-jshint. NodeJs的安装省略. 安装SublimeLinter Su ...

  8. Fabio 安装和简单使用

    Fabio(Go 语言):https://github.com/eBay/fabio Fabio 是一个快速.现代.zero-conf 负载均衡 HTTP(S) 路由器,用于部署 Consul 管理的 ...

  9. gentoo 安装

    加载完光驱后 1进行ping命令查看网络是否通畅 2设置硬盘的标识为GPT(主要用于64位且启动模式为UEFI,还有一个是MBR,主要用于32位且启动模式为bois) parted -a optima ...

随机推荐

  1. sense之间的数据传输

    下面介绍一种原界面向目标界面传值 和 两种 由目标界面返回值给原界面的方法 界面解释: a界面和b界面都在导航控制器中, a界面触发时间跳转至b界面,b界面上设定完毕数据后返回a界面 a界面:原界面 ...

  2. 常用模块二(hashlib、configparser、logging)

    阅读目录 常用模块二 hashlib模块 configparse模块 logging模块   常用模块二 返回顶部 hashlib模块 Python的hashlib提供了常见的摘要算法,如MD5,SH ...

  3. Simplify Path——简单经典的预处理

    Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", ...

  4. cmd命令和加密文件玩法

    文本里写入: .LOGsysteminfo //电脑信息ipconfig //ip获取ping baidu.com//测试网络,查看网站服务器地址 9:03 2017/11/10 netplwiz / ...

  5. 关于在windows下部署发布QT程序的总结

    原文请看:http://www.cnblogs.com/javaexam2/archive/2011/05/18/2632916.html 关于在windows下部署发布QT程序的总结 2008-06 ...

  6. [js] 数据结构

    var dic = {"127.0.0.1":{"1440":[["keyx","keyy","clix&qu ...

  7. C++ 单例模式的几种实现研究

    都是从网上学得,整理下自己的理解. 单例模式有两种实现模式: 1)懒汉模式: 就是说当你第一次使用时才创建一个唯一的实例对象,从而实现延迟加载的效果. 2)饿汉模式: 就是说不管你将来用不用,程序启动 ...

  8. 乱侃OOD

    接口代表的就是共同性,所谓面向接口编程,就是要抽象各种不同概念的共同点 然后把这些概念的不同点用具体的类包装起来,这样一看,面向接口编程就等于面向对象编程 其实说白了是一个概念 IOC就是要把对细节的 ...

  9. React Hooks useState为什么顺序很重要

    一个Function Component的state状态整体是作为memoizedState存在FIber中的. function执行时,首先取memoizedState第一个base state,作 ...

  10. POJ ???? Monkey King

      题目描述 Once in a forest, there lived N aggressive monkeys. At the beginning, they each does things i ...