OpenShift Container Platform 4.10 CLI 工具
information about an image oc image info quay.io/openshift/cli:latest # Show information about images matching a wildcard oc image info quay.io/openshift/cli:4.* # Show information about a file com/myimage:latest docker.io/myrepository/myimage:stable \ docker.io/myrepository/myimage:dev # Copy multiple images oc image mirror myregistry.com/myimage:latest=myregistry.com/other:test \ myregistry.com/myimage:new=myregistry image info myregistry.com/myimage:latest' to see available os/arch for multi-arch images # Note that with multi-arch images, this results in a new manifest list digest that includes only # the filtered0 码力 | 120 页 | 1.04 MB | 1 年前3OpenShift Container Platform 4.8 CLI 工具
information about an image oc image info quay.io/openshift/cli:latest # Show information about images matching a wildcard oc image info quay.io/openshift/cli:4.* # Show information about a file com/myimage:latest docker.io/myrepository/myimage:stable \ docker.io/myrepository/myimage:dev # Copy multiple images oc image mirror myregistry.com/myimage:latest=myregistry.com/other:test \ myregistry.com/myimage:new=myregistry image info myregistry.com/myimage:latest' to see available os/arch for multi-arch images # Note that with multi-arch images, this results in a new manifest list digest that includes only # the filtered0 码力 | 152 页 | 1.24 MB | 1 年前3OpenShift Container Platform 4.13 CLI 工具
information about an image oc image info quay.io/openshift/cli:latest # Show information about images matching a wildcard oc image info quay.io/openshift/cli:4.* # Show information about a file com/myimage:latest docker.io/myrepository/myimage:stable \ docker.io/myrepository/myimage:dev # Copy multiple images oc image mirror myregistry.com/myimage:latest=myregistry.com/other:test \ myregistry.com/myimage:new=myregistry image info myregistry.com/myimage:latest' to see available os/arch for multi-arch images # Note that with multi-arch images, this results in a new manifest list digest that includes only # the filtered0 码力 | 128 页 | 1.11 MB | 1 年前3OpenShift Container Platform 4.7 更新集群
为了避免 OpenShift Update Service 应用程序过量使用内存,建议将发行镜像镜像到单独 的存储库,如下所述。 先决条件 先决条件 您已查看并完成了 "Mirroring images for a disconnected installation" 中直到(不包 括)Mirroring the OpenShift Container Platform image repository ocp4/openshift4。 d. 导出包含发行镜像的额外本地存储库名称: 对于images_repository_name>,请指定要在 registry 中创建的仓库名 称,如 ocp4/openshift4-release-images。 e. 导出要进行镜像的存储库名称: 对于生产环境版本,必须指定 openshift-release-dev。 f try_host_port>' $ LOCAL_REPOSITORY=' ' $ LOCAL_RELEASE_IMAGES_REPOSITORY=' images_repository_name>' $ PRODUCT_REPO='openshift-release-dev' $ LOCAL_SECRET_JSON= 0 码力 | 62 页 | 716.72 KB | 1 年前3OpenShift Container Platform 4.14 机器管理
publisher: "" resourceID: /resourceGroups/- rg/providers/Microsoft.Compute/images/ 13 sku: "" version: "" internalLoadBalancer: /resourceGroups/myclustername- rg/providers/Microsoft.Compute/galleries/gallery_myclustername_n6n4r/images/myclustername -gen2/versions/latest sku: "" version: "" kind: /resourceGroups/myclustername- rg/providers/Microsoft.Compute/galleries/gallery_myclustername_n6n4r/images/myclustern ame-gen2/versions/latest sku: "" version: "" kind: 0 码力 | 277 页 | 4.37 MB | 1 年前3OpenShift Container Platform 4.7 镜像
email address here. 法律通告 法律通告 Copyright © 2022 | You need to change the HOLDER entity in the en-US/Images.ent file |. The text of and illustrations in this document are licensed by Red Hat under a Creative https://access.redhat.com/documentation/en- us/openshift_container_platform/4.7/html-single/images/#using-images-overview 容器镜像。 1.3. 镜像 REGISTRY 镜像 registry 是一个可存储和提供容器镜像的内容服务器。例如: registry 包含一个或多个镜像 断开连接的镜像。 对于已镜像的 registry,若要查看拉取镜像的来源,您必须查看 Trying 以访问 CRI-O 日志中的日志条 目。查看镜像拉取源的其他方法(如在节点上使用 crictl images 命令)显示非镜像镜像名称,即使镜像 是从镜像位置拉取的。 注意 注意 红帽不支持使用 OpenShift Container Platform 测试第三方 registry。 其他信息 其他信息0 码力 | 123 页 | 1.20 MB | 1 年前3OpenShift Container Platform 4.14 镜像
断开连接的镜像。 对于已镜像的 registry,若要查看拉取镜像的来源,您必须查看 Trying 以 以访问 访问 CRI-O 日志中的日志条 目。查看镜像拉取源的其他方法(如在节点上使用 crictl images 命令)显示非镜像镜像名称,即使镜像 是从镜像位置拉取的。 注意 注意 红帽没有针对 OpenShift Container Platform 测试第三方 registry。 附加信息 附加信息 Docker Pull Spec: docker-registry.default.svc:5000/default/python Image Lookup: local=false Unique Images: 1 Tags: 1 3.5 tagged from centos/python-35-centos7 * centos/python-35- centos7@sha256: Docker Pull Spec: docker-registry.default.svc:5000/default/python Image Lookup: local=false Unique Images: 1 Tags: 2 latest tagged from python@sha256:49c18358df82f4577386404991c51a9559f243e0b1bdc366df250 码力 | 118 页 | 1.13 MB | 1 年前3OpenShift Container Platform 4.9 构建应用程序
13.1. 基本修剪操作 CLI 将修剪操作分组到一个通用的父命令下: 这将指定: 要对其执行操作的,如 groups、builds、deployments 或 images。 修剪该对象类型所支持的 。 13.2. 修剪组 要修剪来自外部提供程序的组记录,管理员可以运行以下命令: 表 13.1. oc adm prune groups 标记 中的镜像启用自动镜像修剪。管理员可以手工删除因为年龄、状态或超 过限值而不再需要的镜像。手动删除镜像的方法有两种: 在集群上以一个 Job 或 CronJob 运行镜像修剪。 运行 oc adm prune images 命令。 先决条件 若要修剪镜像,您必须先以具有访问令牌的用户身份登录到 CLI。用户还必须有集群角色 system:image-pruner 或更高级别的角色(如 cluster-admin)。 - oc args: - adm - prune - images - --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/service-ca 0 码力 | 184 页 | 3.36 MB | 1 年前3OpenShift Container Platform 4.10 构建应用程序
14.1. 基本修剪操作 CLI 将修剪操作分组到一个通用的父命令下: 这将指定: 要对其执行操作的,如 groups、builds、deployments 或 images。 修剪该对象类型所支持的 。 14.2. 修剪组 要修剪来自外部提供程序的组记录,管理员可以运行以下命令: 表 表 14.1. oc adm prune groups 中的镜像启用自动镜像修剪。管理员可以手工删除因为年 龄、状态或超过限值而不再需要的镜像。手动删除镜像的方法有两种: 在集群上以一个 Job 或 CronJob 运行镜像修剪。 运行 oc adm prune images 命令。 先决条件 先决条件 若要修剪镜像,您必须先以具有访问令牌的用户身份登录到 CLI。用户还必须有集群角色 system:image-pruner 或更高级别的角色(如 cluster-admin)。 - adm - prune - images OpenShift Container Platform 4.10 构 构建 建应 应用程序 用程序 182 运行 oc adm prune images [ ] 命令: 除非使用了 --prune-registry=false,否则修剪镜像会从集成 0 码力 | 198 页 | 3.62 MB | 1 年前3OpenShift Container Platform 4.14 更新集群
n:Required ReleaseImage string `json:"releaseImage"` 1 // Boolean flag that determines whether images build during preflight must also // be pushed to a defined repository // +optional PushBuiltImage 断开连接的镜像。 对于已镜像的 registry,若要查看拉取镜像的来源,您必须查看 Trying 以 以访问 访问 CRI-O 日志中的日志条 目。查看镜像拉取源的其他方法(如在节点上使用 crictl images 命令)显示非镜像镜像名称,即使镜像 是从镜像位置拉取的。 注意 注意 红帽没有针对 OpenShift Container Platform 测试第三方 registry。 其他 其他资 Update Service,请导出一个额外的本地存储库名称,使其包含发行镜 像: 对于images_repository_name>,请指定要在 registry 中创建的仓库名 称,如 ocp4/openshift4-release-images。 e. 导出要进行镜像的存储库名称: 对于生产环境版本,必须指定 openshift-release-dev。 f 0 码力 | 149 页 | 1.94 MB | 1 年前3
共 33 条
- 1
- 2
- 3
- 4