이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 11. Monitoring Images
11.1. Overview 링크 복사링크가 클립보드에 복사되었습니다!
11.2. Viewing Images Statistics 링크 복사링크가 클립보드에 복사되었습니다!
OpenShift Container Platform can display several usage statistics about all the images it 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, using their ID
- information about where the image is being used
- flag informing whether the image contains proper Docker metadata information
- size of the image
11.3. Viewing ImageStreams Statistics 링크 복사링크가 클립보드에 복사되었습니다!
OpenShift Container Platform can display several usage statistics about all the 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
ImageStreamstored in the internal Red Hat Container Registry -
number of images this particular
ImageStreamis pointing to -
number of layers
ImageStreamconsists of
11.4. Pruning Images 링크 복사링크가 클립보드에 복사되었습니다!
The information returned from the above commands is helpful when performing image pruning.