开篇之前如果没有安装openshift环境可以参考我的博文:centos7下安装openshift

本系列博客学习笔记参考《开源容器云openshift》一书:下载连接:https://download.csdn.net/download/u012371097/10745382

 

Image Stream是一组镜像的集合,可以在一个Image Stream中定义一些名称及标签(tag),并定义这些名字及标签指向的具体镜像。

使用Image Stream的目的是方便地将一组相关联的镜像进行整合管理和使用。

Openshift默认为用户定义了一系列开箱即用的Image Stream。

  • 以管理员登录,并切换到openshift工程。 

         # oc login -u system:admin

         # oc project openshift

开源容器openshift学习笔记(3):添加Image Stream

openshift下创建的所有Image Stream及Template对集群内所有的用户和项目可见,如果Image Stream及Template在其他项目下创建,则只能在创建这些对象的项目中可见

  • 导入Image Stream

# curl -k https://raw.githubusercontent.com/openshift/origin/v3.6.0/examples/image-streams/image-streams-centos7.json|oc create -f - -n openshift


开源容器openshift学习笔记(3):添加Image Stream

  • 查看Image Stream对象

# oc get is -n openshift

开源容器openshift学习笔记(3):添加Image Stream

登陆web console:https://192.168.0.197:8443  新建工程,可以看到刚刚导入的Image Stream

开源容器openshift学习笔记(3):添加Image Stream

 

 

相关文章:

  • 2021-06-16
  • 2022-12-23
  • 2021-11-16
  • 2021-06-05
  • 2022-12-23
  • 2021-06-10
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2021-07-09
  • 2021-09-06
  • 2021-11-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案