docker中如何快速安装openshift
发表于:2025-02-13 作者:千家信息网编辑
千家信息网最后更新 2025年02月13日,这篇文章主要介绍了docker中如何快速安装openshift,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。事前准备[root@hos
千家信息网最后更新 2025年02月13日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安全错误
数据库的锁怎样保障安全
震惊世界的网络安全事件
高速收费站服务器建设项目
一致性网络安全架构
数据库数据存储方式
信威电池服务器连接失败
下列不属于网络安全防范措施的是
电脑网络安全管理软件官方最新版
远程连接服务器输入中文特别卡
文献检索的数据库名称
数据库基础与应用pdf
软件开发企业可以称承建单位吗
英雄联盟1区服务器炸了
宿舍网络安全密钥
苹果6如何删除健康数据库
vs数据库打不开
网络安全申论文章标题
国外软件开发用什么编程软件
投屏出现服务器拒绝
香港网站服务器租用
网络技术公司都有什么
河南北斗卫星时钟服务器云主机
软件开发外包公司多吗
信威电池服务器连接失败
吴江网络技术支持包括什么
大数据是数据库的什么关系型
网络安全托管业务增长
服务器的更新换代
中国民航网络技术员职业技能
区县网络安全保卫大队
网络安全教育幼儿园方案