先下载安装包

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. 流程控制--while

    /* while 是在有条件控制的情况下 进行的循环 */ [root@localhost test1]# vim .py //ADD #!/usr/bin/python n = while True ...

  2. elasticsearch索引加别名

    curl -XPOST 'http://localhost:9200/_aliases' -d '    {        "actions": [            {&qu ...

  3. 获取GUID的方法

    uses QString; procedure TForm12.btn1Click(Sender: TObject); var g: TGUID; begin //方法1(Guid的Helper)-- ...

  4. FFmpeg软件只是个解码编码软件,如果支持多种格式必须先安装好对应的库,下面就说下我装的库

    FFmpeg软件只是个解码编码软件,如果支持多种格式必须先安装好对应的库,下面就说下我装的库:1. 安装faad2 # wget http://downloads.sourceforge.net/fa ...

  5. 【转载】Web Service 的工作原理

    http://www.cnblogs.com/Jessy/p/3528341.html Web Service基本概念 Web Service也叫XML Web Service WebService是 ...

  6. 六十五 async/await

    用asyncio提供的@asyncio.coroutine可以把一个generator标记为coroutine类型,然后在coroutine内部用yield from调用另一个coroutine实现异 ...

  7. CentOS7安装和配置vsftpd

    (1)vsftpd基本介绍 作用:实现文件共享 1)vsftpd两种模式 主动模式 所谓主动模式,指的是FTP服务器"主动"去连接客户端的数据端口来传输数据,其过程具体来说就是:客 ...

  8. [thinkphp] 无限极分类

    <?php /* * 无限极分类 类 */ header("Content-Type: text/html; charset=UTF-8"); Class Category ...

  9. Attacking JavaScript Engines: A case study of JavaScriptCore and CVE-2016-4622(转)

    转:http://phrack.org/papers/attacking_javascript_engines.html Title : Attacking JavaScript Engines: A ...

  10. SpringBoot+Mybatis整合实例

    前言 大家都知道springboot有几大特点:能创建独立的Spring应用程序:能嵌入Tomcat,无需部署WAR文件:简化Maven配置:自动配置Spring等等.这里整合mybatis,创建一个 ...