How to check the storage used by images in /var/lib/containers/storage/

Solution Unverified - Updated -

Issue

  • Checking the disk usage whithin a node with du -sh /var/lib/containers/storage/ shows high disk usage, even larger than disk size.
  • The disk usage for /var/lib/containers/storage/ shown by du looks wrong.
  • How to check pod's disk consumption.
  • How much disk space is used by images/containers/pods/local volumes?

Environment

  • Red Hat OpenShift Container Platform (RHOCP, OCP)
    • 4.x
  • Red Hat Enterprise Linux (RHEL)
    • 8.x
  • Podman

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In