美文网首页云计算
mac 安装 openshift

mac 安装 openshift

作者: 梅_梅 | 来源:发表于2019-01-02 17:49 被阅读1次

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

相关文章

网友评论

    本文标题:mac 安装 openshift

    本文链接:https://www.haomeiwen.com/subject/xjlzlqtx.html