docker中如何快速安装openshift
发表于:2024-11-11 作者:千家信息网编辑
千家信息网最后更新 2024年11月11日,这篇文章主要介绍了docker中如何快速安装openshift,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。事前准备[root@hos
千家信息网最后更新 2024年11月11日docker中如何快速安装openshift
这篇文章主要介绍了docker中如何快速安装openshift,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
事前准备
[root@host ~]# git clone http://github.com/liumiaocn/easypack.gitCloning into 'easypack'...remote: Counting objects: 1050, done.remote: Compressing objects: 100% (59/59), done.remote: Total 1050 (delta 29), reused 6 (delta 3), pack-reused 985Receiving objects: 100% (1050/1050), 157.41 KiB | 0 bytes/s, done.Resolving deltas: 100% (464/464), done.[root@host ~]# cd easypack/openshift/[root@host openshift]# lsinstall-openshift.sh[root@host openshift]#
安装
安装命令:sh install-openshift.sh
[root@host openshift]# sh install-openshift.sh Sun May 6 09:16:16 EDT 2018## Step 1: OS version confirm: Linux host.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/LinuxCentOS Linux release 7.3.1611 (Core) ## Install docker Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.it.ubc.ca * extras: mirror.it.ubc.ca * updates: mirror.csclub.uwaterloo.ca...安装dockerSun May 6 09:16:16 EDT 2018## Step 2: Set net.ipv4.ip_forwardnet.ipv4.ip_forward=1net.ipv4.ip_forward=1sysctl net.ipv4.ip_forwardnet.ipv4.ip_forward = 1Sun May 6 09:16:17 EDT 2018## Step 3: Set registry & Restart docker{ "insecure-registries": [ "172.30.0.0/16" ]}## systemctl daemon-reload## systemctl restart docker## confirm docker versionClient: Version: 1.13.1 API version: 1.26 Package version:Go version: go1.8.3 Git commit: 774336d/1.13.1 Built: Wed Mar 7 17:06:16 2018 OS/Arch: linux/amd64Server: Version: 1.13.1 API version: 1.26 (minimum version 1.12) Package version: Go version: go1.8.3 Git commit: 774336d/1.13.1 Built: Wed Mar 7 17:06:16 2018 OS/Arch: linux/amd64 Experimental: falseSun May 6 09:16:20 EDT 2018## Step 4: Set for firewall...设定防火墙端口Sun May 6 09:16:21 EDT 2018## Step 5: get and setting oc: Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirror.it.ubc.ca * extras: mirror.it.ubc.ca * updates: mirror.csclub.uwaterloo.caPackage wget-1.14-15.el7_4.1.x86_64 already installed and latest versionNothing to do--2018-05-06 09:16:22-- ...下载oc客户端工具2018-05-06 09:16:40 (2.45 MB/s) - 'Äòopenshift-origin-client-tools-v3.9.0-191fece-linux-64bit.tar.gz'Äô saved [44156681/44156681]...省略/usr/local/bin/ococ v3.9.0+191fecekubernetes v1.9.1+a0ce1bc657features: Basic-Auth GSSAPI Kerberos SPNEGOSun May 6 09:16:42 EDT 2018## Step 6: start up oc clusterPulling image openshift/origin:v3.9.0Pulled 1/4 layers, 31% completePulled 2/4 layers, 63% completePulled 3/4 layers, 75% completePulled 3/4 layers, 80% completePulled 3/4 layers, 86% completePulled 3/4 layers, 91% completePulled 3/4 layers, 95% completePulled 3/4 layers, 99% completePulled 4/4 layers, 100% completeExtractingImage pull completeUsing nsenter mounter for OpenShift volumesUsing 127.0.0.1 as the server IPStarting OpenShift using openshift/origin:v3.9.0 ...OpenShift server started.The server is accessible via web console at: https://127.0.0.1:8443You are logged in as: User: developer Password: To login as administrator: oc login -u system:adminSun May 6 09:20:37 EDT 2018REPOSITORY TAG IMAGE ID CREATED SIZEdocker.io/openshift/origin-web-console v3.9.0 6d397283b924 6 days ago 489 MBdocker.io/openshift/origin-deployer v3.9.0 2dcb16bd17a4 6 days ago 1.25 GBdocker.io/openshift/origin v3.9.0 e28708220c0b 6 days ago 1.25 GBdocker.io/openshift/origin-pod v3.9.0 b549aa96e0a7 6 days ago 220 MBdocker.io/capitalone/hygieia-api latest 8e7b476005b9 15 months ago 684 MBSun May 6 09:20:38 EDT 2018## Step 7: oc login -u developerLogged into "https://127.0.0.1:8443" as "developer" using existing credentials.You have one project on this server: "myproject"Using project "myproject".## Finished.[root@host openshift]#
结果确认
相关的镜像
[root@host openshift]# docker images |grep openshiftdocker.io/openshift/origin-web-console v3.9.0 6d397283b924 6 days ago 489 MBdocker.io/openshift/origin-docker-registry v3.9.0 45f47bc77de8 6 days ago 458 MBdocker.io/openshift/origin-haproxy-router v3.9.0 42e8fd168a7a 6 days ago 1.28 GBdocker.io/openshift/origin-deployer v3.9.0 2dcb16bd17a4 6 days ago 1.25 GBdocker.io/openshift/origin v3.9.0 e28708220c0b 6 days ago 1.25 GBdocker.io/openshift/origin-pod v3.9.0 b549aa96e0a7 6 days ago 220 MB[root@host openshift]#
验证管理员权限
[root@host openshift]# oc login -u system:adminLogged into "https://127.0.0.1:8443" as "system:admin" using existing credentials.You have access to the following projects and can switch between them with 'oc project': default kube-public kube-system * myproject openshift openshift-infra openshift-node openshift-web-consoleUsing project "myproject".[root@host openshift]#
本地连接方式
ssh -p 10023 -L 80:127.0.0.1:80 127.0.0.1ssh -p 10023 -L 8443:127.0.0.1:8443 127.0.0.1https://127.0.0.1:8443
感谢你能够认真阅读完这篇文章,希望小编分享的"docker中如何快速安装openshift"这篇文章对大家有帮助,同时也希望大家多多支持,关注行业资讯频道,更多相关知识等着你来学习!
篇文章
价值
兴趣
同时
命令
客户
客户端
工具
方式
更多
朋友
权限
知识
端口
管理员
结果
编带
行业
资讯
资讯频道
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
acdsee数据库怎么设置
服务器桌面显示cmd
蓟州区信息网络技术诚信合作
服务器有几个网卡怎么看
服务器蓝屏查看系统日志
洋码头服务器
学生创新潜质数据库
服务器安全狗用完不能连接了
大学生网络安全怎么做
什么样的服务器证书好
数据库什么时候存储比较好
数据库查询管理器打不开
企业不同云服务器组网
网络安全审计考证大全
深信服软件开发面试会编程吗
网络安全质检员是学什么的
怎么把文件传到数据库展示
云计算是网络安全新技术吗
酷通加速服务器app下载
电脑软件开发自学课程
马云背后的男人网络安全
对数据库这门课程的感想
crm客户管理软件开发服务
地球末日生存服务器
接短服务器
幼儿园网络安全风险告知卡
数据库产品安装检查包括
淮安网络安全准入控制系统售价
国内外网络安全形势严峻复杂
静安区网络技术咨询服务哪个好