Main Menu

Search

CRI-O: CRICTL Command To Inspect the CRIO Image

Below command can be used.

crictl inspecti <image>

Below is sample output

sudo crictl inspecti aeaa426620287
{
  "status": {
    "id": "aeaa4266202870b7ba0d8fee810894eb453aba3313b53f91e576153533757871",
    "repoTags": [
      "container-registry.oracle.com/olcne/kube-scheduler:v1.24.15"
    ],
    "repoDigests": [
      "container-registry.oracle.com/olcne/kube-scheduler@sha256:b343679503ab970d3a871fe06ad2f38ac22143acb1f8f42c528f15dc7581b419"
    ],
    "size": "168358862",
    "uid": null,
    "username": "",
    "spec": null,
    "pinned": false
  },
  "info": {
    "labels": {
      "io.buildah.version": "1.24.1"
    },
    "imageSpec": {
      "created": "2023-06-28T20:13:17.64382043Z",
      "architecture": "amd64",
      "os": "linux",
      "config": {
        "Env": [
          "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "Cmd": [
          "/bin/bash"
        ],
        "Labels": {
          "io.buildah.version": "1.24.1"
        }
      },
      "rootfs": {
        "type": "layers",
        "diff_ids": [
          "sha256:0628316eca4c2a871969d47900ae3948f43e49d32f18b45fe3c251dccf944137",
          "sha256:ae88c8b34aaeee558e49dddd8d013bc97a7f0be288a49ec9a1b2948f2a74c872",
          "sha256:858687ff50547be7d4ac583ab0f299f237d52634b36dc0443f6cf914cf8d65af",
          "sha256:910a37f46f92f5fd827d2b160d032e7d7c0be5e0a0b31136933e23bdd2f80e98",
          "sha256:0d841c74e8c57f24af4b639c6b7904542bec91b8312b505a42dd11c8c54b83b5",
          "sha256:16dbfef62e283022aa5bf7669069cad21faf6793d633dc2a0573ecabb2c34a13"
        ]
      },
      "history": [
        {
          "created": "2023-06-15T22:56:06.187379525Z",
          "created_by": "/bin/sh -c #(nop) ADD file:59eae1d2cc3c7d887c9bd2b0272ec94df71538c75bd83c16ee2a3338a2b8eeae in / "
        },
        {
          "created": "2023-06-15T22:56:07.588871894Z",
          "created_by": "/bin/sh -c #(nop) CMD [\"/bin/bash\"]",
          "empty_layer": true
        },
        {
          "created": "2023-06-28T20:11:28.883580841Z",
          "created_by": "/bin/sh -c #(nop) ARG BINARY",
          "empty_layer": true
        },
        {
          "created": "2023-06-28T20:11:29.488990309Z",
          "created_by": "/bin/sh -c #(nop) ARG VERSION",
          "empty_layer": true
        },
        {
          "created": "2023-06-28T20:13:07.000344956Z",
          "created_by": "|3 BINARY=kube-scheduler VERSION=v1.24.15 https_proxy=http://squid.jx.svc.cluster.local:3128 /bin/sh -c microdnf install -y tar which \u0026\u0026    microdnf clean all \u0026\u0026    rm -rf /var/cache/yum/*"
        },
        {
          "created": "2023-06-28T20:13:10.00032873Z",
          "created_by": "/bin/sh -c #(nop) ADD file:86c34be6b61e4b8c36bcb149692818d8a1755c5582daaf56f1f8d0332f8caa69 in /usr/local/bin/${BINARY} "
        },
        {
          "created": "2023-06-28T20:13:14.000290456Z",
          "created_by": "|3 BINARY=kube-scheduler VERSION=v1.24.15 https_proxy=http://squid.jx.svc.cluster.local:3128 /bin/sh -c test -d /LICENSES || ln -s /usr/share/licenses /LICENSES"
        },
        {
          "created": "2023-06-28T20:13:16.000268081Z",
          "created_by": "/bin/sh -c #(nop) ADD file:f5ab50807331c354ee4381ecec1b84d339966912eea48a069ef5635aa3ba9240 in /LICENSES/kubernetes-${VERSION}/LICENSE "
        },
        {
          "created": "2023-06-28T20:13:18.000166977Z",
          "created_by": "/bin/sh -c #(nop) ADD file:90d809482ad16527c55d3c557bea6f5b410c45222966435cd1eec93358e526fe in /LICENSES/kubernetes-${VERSION}/THIRD_PARTY_LICENSES.txt "
        }
      ]
    }
  }
}

No comments:

Post a Comment