此内容没有您所选择的语言版本。

Chapter 14. Monitoring Images


14.1. Overview

You can monitor images and nodes in your instance using the CLI.

14.2. Viewing Images Statistics

You can display usage statistics about all of the images that OpenShift Container Platform manages. In other words, all the images pushed to the internal registry either directly or through a build.

To view the usage statistics:

$ oc adm top images
NAME                 IMAGESTREAMTAG            PARENTS                   USAGE                         METADATA    STORAGE
sha256:80c985739a78b openshift/python (3.5)                                                            yes         303.12MiB
sha256:64461b5111fc7 openshift/ruby (2.2)                                                              yes         234.33MiB
sha256:0e19a0290ddc1 test/ruby-ex (latest)     sha256:64461b5111fc71ec   Deployment: ruby-ex-1/test    yes         150.65MiB
sha256:a968c61adad58 test/django-ex (latest)   sha256:80c985739a78b760   Deployment: django-ex-1/test  yes         186.07MiB

The command displays the following information:

  • Image ID
  • Project, name, and tag of the accompanying ImageStreamTag
  • Potential parents of the image, listed by their IDs
  • Information about where the image is used
  • Flag informing whether the image contains proper Docker metadata information
  • Size of the image

14.3. Viewing ImageStreams Statistics

You can display usage statistics about ImageStreams.

To view the usage statistics:

$ oc adm top imagestreams
NAME                STORAGE     IMAGES  LAYERS
openshift/python    1.21GiB     4       36
openshift/ruby      717.76MiB   3       27
test/ruby-ex        150.65MiB   1       10
test/django-ex      186.07MiB   1       10

The command displays the following information:

  • Project and name of the ImageStream
  • Size of the entire ImageStream stored in the internal Red Hat Container Registry
  • Number of images this particular ImageStream is pointing to
  • Number of layers ImageStream consists of

14.4. Pruning Images

The information returned from the previous commands is helpful when performing image pruning.

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.