mac 安装 openshift

1. 概述

使用minishift的方式在本地安装openshift

2. 配置xhyve Driver

Minishift is currently tested against docker-machine-driver-xhyve version 0.3.3.

Use the following command to install the latest version of the driver with Homebrew:

$ brew install docker-machine-driver-xhyve

Once installed, enable root access for the docker-machine-driver-xhyve binary and add it to the default wheel group:

$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-
driver-xhyve/bin/docker-machine-driver-xhyve

Set the owner User ID (SUID) for the binary as follows:

$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

3. 安装minishift

wget https://github.com/minishift/minishift/releases/download/v1.17.0/minishift-1.17.0-darwin-amd64.tgz && tar xvf  minishift-1.17.0-darwin-amd64.tgz && cd minishift-1.17.0-darwin-amd64 

4. 初始化openshift

./minishift start

5.命令行登入

oc login -u system:admin https://192.168.64.2:8443

6.网页登入

首先关闭服务

minishift stop

启动为页面版

minishift console

7. 启用插件

Minishift 预置了若干插件来按需对虚拟机内部运行的 OpenShift Origin 进行个性化。

使用以下命令查看当前插件的启用状态:

$ minishift addon list

使用以下命令启用一个插件,例如我想要启用 anyuid 插件:

$ minishift addon enable anyuid
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 注意: 该 Docker 版本为了支持 Docker 机,于是不再支持 Boot2Docker 命令行。使用 Do...
    提莫队长1234阅读 4,636评论 0 8
  • Docker是一个跨平台的轻量级虚拟机,可移植性非常高,一次部署,终生可用。Docker可以在Linux,Wind...
    风舞柏杨阅读 4,776评论 0 8
  • 世界万物,只要出生出现,就有了生存的本领。 动物学家研究后提出,越是高等级动物,生存的本领越多,手段越高级越丰富。...
    银登歌阅读 1,048评论 0 3
  • 首先,从区块链模式谈起,车贷ABS平台采用了联盟链的模式。联盟成员包括负责 发行债券的证券公司,负责融资的三A级公...
    你还是不管阅读 232评论 0 0
  • 浓眉 大眼 棕瞳 那是她对他的映像 小巧 大方 讨人喜 是他对她的映像 那次,他们分开了 他说他要走了,她也没有挽...
    韩洛轩阅读 152评论 0 0