MacOS with Docker for Mac[使用oc cluster up 安装openshift origin]

网友投稿 246 2022-10-22

MacOS with Docker for Mac[使用oc cluster up 安装openshift origin]

Install ​​Docker for Mac​​ making sure you meet the ​​ prerequisites​​.   Once Docker is running, add an insecure registry of ​​172.30.0.0/16​​:From the Docker menu in the toolbar, select ​​Preferences...​​Click on ​​Daemon​​ in the preferences dialog (note: on some older versions of Docker for Mac this is under ​​Advanced​​)Under ​​Insecure registries:​​, click on the ​​+​​ icon to add a new entryEnter ​​172.30.0.0/16​​ and press ​​return​​Click on ​​Apply and Restart​​Install ​​socat​​If not already installed, install ​​Homebrew for Mac​​Install socatOpen Terminal and run: $ brew install socatInstall the oc binary using homebrew with: ​​brew install openshift-cli​​ORDownload the Mac OS ​​oc​​ binary from ​​ openshift-origin-client-tools-VERSION-mac.zip​​ and place it in your path.Please be aware that the 'oc cluster' set of commands are only available in the 1.3+ or newer releases.Open Terminal and run$ oc cluster up

To stop your cluster, run:

$ oc cluster down

根据官方文档编写:

1:先安装Docker For Mac. 具体如何安装,请查看上一篇博客

2:配置Docker文件,我的配置如下:

3:Install ​​socat​​

如果brew命令不能用,请安装:

brew是什么? 是在Mac OSX系统上操作软件包管理工具

同样的:Linux 中Red Hat 使用yum,Ubuntu使用apt-get,Mac OSX中就使用brew了。

/usr/bin/ruby -e "$(curl -fsSL install socat

4:安装OC命令:

​​brew install openshift-cli​​

5:启动cluster

参考地址:

https://openshift.com/devpreview/register.html

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Docker:《二》DockerFile制作image
下一篇:SpringBoot整合mybatis的方法详解
相关文章

 发表评论

暂时没有评论,来抢沙发吧~